Discord: drop enableReactions config
This commit is contained in:
committed by
Peter Steinberger
parent
6bab813bb3
commit
0c38f2df2a
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user