refactor: remove unused discord helpers

This commit is contained in:
Peter Steinberger
2026-05-01 10:06:38 +01:00
parent c2cb648dc3
commit e5208bd331
2 changed files with 0 additions and 20 deletions

View File

@@ -1,18 +1,6 @@
export const AGENT_BUTTON_KEY = "agent";
export const AGENT_SELECT_KEY = "agentsel";
/**
* The component custom id only carries the logical button id. Channel binding
* comes from Discord's trusted interaction payload.
*/
export function buildAgentButtonCustomId(componentId: string): string {
return `${AGENT_BUTTON_KEY}:componentId=${encodeURIComponent(componentId)}`;
}
export function buildAgentSelectCustomId(componentId: string): string {
return `${AGENT_SELECT_KEY}:componentId=${encodeURIComponent(componentId)}`;
}
export {
ackComponentInteraction,
resolveAgentComponentRoute,

View File

@@ -79,11 +79,3 @@ export function resolveDiscordSenderIdentity(params: {
isPluralKit: false,
};
}
export function resolveDiscordSenderLabel(params: {
author: User;
member?: DiscordMemberLike | null;
pluralkitInfo?: PluralKitMessageInfo | null;
}): string {
return resolveDiscordSenderIdentity(params).label;
}