Discord: drop enableReactions config

This commit is contained in:
Shadow authored and Peter Steinberger committed 2026-01-03 03:07:13 +01:00
1 parent 6bab813bb3
commit 0c38f2df2a
14 files changed
+9 -58

No files matched your search

-5
View File
@@ -1758,11 +1758,6 @@ function createDiscordTool(): AnyAgentTool {
if (!isActionEnabled("reactions")) {
throw new Error("Discord reactions are disabled.");
}
if (cfg.discord?.enableReactions === false) {
throw new Error(
"Discord reactions are disabled (set discord.enableReactions=true).",
);
}
const channelId = readStringParam(params, "channelId", {
required: true,
});
-3
View File
@@ -247,8 +247,6 @@ export type DiscordConfig = {
textChunkLimit?: number;
mediaMaxMb?: number;
historyLimit?: number;
/** Allow agent-triggered Discord reactions (default: true). */
enableReactions?: boolean;
/** Per-action tool gating (default: true for all). */
actions?: DiscordActionConfig;
/** Control reply threading when reply tags are present (off|first|all). */
@@ -1052,7 +1050,6 @@ const ClawdisSchema = z.object({
.optional(),
mediaMaxMb: z.number().positive().optional(),
historyLimit: z.number().int().min(0).optional(),
enableReactions: z.boolean().optional(),
actions: z
.object({
reactions: z.boolean().optional(),