fix: add discord role allowlists (#10650) (thanks @Minidoracat)

This commit is contained in:
Shadow
2026-02-12 19:50:10 -06:00
committed by Shadow
parent f7adc21d31
commit 22fe30c1df
12 changed files with 293 additions and 122 deletions
+1
View File
@@ -78,6 +78,7 @@ export type AgentBinding = {
peer?: { kind: ChatType; id: string };
guildId?: string;
teamId?: string;
/** Discord role IDs used for role-based routing. */
roles?: string[];
};
};
+3 -1
View File
@@ -36,7 +36,7 @@ export type DiscordGuildChannelConfig = {
enabled?: boolean;
/** Optional allowlist for channel senders (ids or names). */
users?: Array<string | number>;
/** Optional allowlist for channel senders by role (ids or names). */
/** Optional allowlist for channel senders by role ID. */
roles?: Array<string | number>;
/** Optional system prompt snippet for this channel. */
systemPrompt?: string;
@@ -54,7 +54,9 @@ export type DiscordGuildEntry = {
toolsBySender?: GroupToolPolicyBySenderConfig;
/** Reaction notification mode (off|own|all|allowlist). Default: own. */
reactionNotifications?: DiscordReactionNotificationMode;
/** Optional allowlist for guild senders (ids or names). */
users?: Array<string | number>;
/** Optional allowlist for guild senders by role ID. */
roles?: Array<string | number>;
channels?: Record<string, DiscordGuildChannelConfig>;
};