refactor: remove unused discord helpers · openclaw/openclaw@e5208bd
steipete
·
2026-05-01
·
via Recent Commits to openclaw:main
File tree
extensions/discord/src/monitor
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | export const AGENT_BUTTON_KEY = "agent"; |
2 | 2 | export const AGENT_SELECT_KEY = "agentsel"; |
3 | 3 | |
4 | | -/** |
5 | | - * The component custom id only carries the logical button id. Channel binding |
6 | | - * comes from Discord's trusted interaction payload. |
7 | | - */ |
8 | | -export function buildAgentButtonCustomId(componentId: string): string { |
9 | | -return `${AGENT_BUTTON_KEY}:componentId=${encodeURIComponent(componentId)}`; |
10 | | -} |
11 | | - |
12 | | -export function buildAgentSelectCustomId(componentId: string): string { |
13 | | -return `${AGENT_SELECT_KEY}:componentId=${encodeURIComponent(componentId)}`; |
14 | | -} |
15 | | - |
16 | 4 | export { |
17 | 5 | ackComponentInteraction, |
18 | 6 | resolveAgentComponentRoute, |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -79,11 +79,3 @@ export function resolveDiscordSenderIdentity(params: {
|
79 | 79 | isPluralKit: false, |
80 | 80 | }; |
81 | 81 | } |
82 | | - |
83 | | -export function resolveDiscordSenderLabel(params: { |
84 | | -author: User; |
85 | | -member?: DiscordMemberLike | null; |
86 | | -pluralkitInfo?: PluralKitMessageInfo | null; |
87 | | -}): string { |
88 | | -return resolveDiscordSenderIdentity(params).label; |
89 | | -} |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。