From 0849d06192e039e134cebcc5737d7ffae9b5c63e Mon Sep 17 00:00:00 2001 From: Vernon Stinebaker Date: Fri, 20 Feb 2026 19:12:38 +0800 Subject: [PATCH] fix(discord): skip mention_only check for DMs DMs should always be responded to regardless of mention_only setting. Added check to skip the mention_only logic when GuildID is empty. --- pkg/channels/discord.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/channels/discord.go b/pkg/channels/discord.go index 80b85009c..342ddb478 100644 --- a/pkg/channels/discord.go +++ b/pkg/channels/discord.go @@ -184,7 +184,8 @@ func (c *DiscordChannel) handleMessage(s *discordgo.Session, m *discordgo.Messag } // If configured to only respond to mentions, check if bot is mentioned - if c.config.MentionOnly { + // Skip this check for DMs (GuildID is empty) - DMs should always be responded to + if c.config.MentionOnly && m.GuildID != "" { isMentioned := false for _, mention := range m.Mentions { if mention.ID == c.botUserID {