From 1c074d520481d06bca83d563c4225d62d01fe2cf Mon Sep 17 00:00:00 2001 From: h1n054ur Date: Wed, 18 Feb 2026 02:52:35 +0500 Subject: [PATCH] fix(discord): use channel name for reply routing instead of discord channel ID The Discord channel was setting msg.channel to the numeric Discord channel ID instead of the literal string 'discord'. This caused process_channel_message() to fail the channels_by_name lookup since the map is keyed by channel name (e.g. 'discord', 'telegram', 'slack'). The result: the bot receives messages and generates LLM responses but never sends them back -- target_channel resolves to None so the send call is silently skipped. Every other channel (telegram, slack, whatsapp, matrix, signal, irc, imessage, lark, dingtalk, qq, email, mattermost) correctly sets this field to its channel name string. Discord was the only one using the platform-specific ID. --- src/channels/discord.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/channels/discord.rs b/src/channels/discord.rs index 939d47c..39391f9 100644 --- a/src/channels/discord.rs +++ b/src/channels/discord.rs @@ -406,7 +406,7 @@ impl Channel for DiscordChannel { channel_id.clone() }, content: clean_content, - channel: channel_id, + channel: "discord".to_string(), timestamp: std::time::SystemTime::now() .duration_since(std::time::UNIX_EPOCH) .unwrap_or_default()