mirror of
https://github.com/farcasclaudiu/openclaw.git
synced 2026-06-28 21:01:43 +03:00
fix: add discord role allowlists (#10650) (thanks @Minidoracat)
This commit is contained in:
@@ -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[];
|
||||
};
|
||||
};
|
||||
|
||||
@@ -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>;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user