mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:50:43 +00:00
refactor: remove unused discord helpers
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user