Help Request: Bot-to-Bot Mentions in Discord Threads Not Triggering Agent
I have a setup where:
1. Bot A (my Python Discord bot using discord.py) posts alerts to a channel
2. When a user clicks a button, Bot A creates a thread on that message
3. Bot A posts an initial message in the thread that @mentions Clawdbot using <@BOT_ID>
4. Clawdbot should respond in the thread
What's happening instead:
- Clawdbot can respond in threads when I (a human) message directly
- Clawdbot does NOT respond when Bot A @mentions it in threads
- The mention format is correct: <@BOT_ID> (verified the ID is correct)
Relevant config (~/.clawdbot/clawdbot.json):
{
discord: {
enabled: true,
token: REDACTED,
groupPolicy: open,
allowBots: true,
guilds: {
*: {
requireMention: false
}
}
},
bindings: [
{
agentId: default,
match: {
provider: discord,
peer: { kind: channel, id: CHANNEL_ID_1 }
}
},
{
agentId: default,
match: {
provider: discord,
peer: { kind: channel, id: CHANNEL_ID_2 }
}
}
],
agents: {
defaults: {
model: { primary: anthropic/claude-sonnet-4-20250514 },
workspace: ~/my-workspace
},
list: [
{ id: default, workspace: ~/my-workspace },
{ id: main, workspace: ~/my-workspace }
]
}
}
Questions:
1. Does allowBots: true work for bot @mentions in threads, or only for direct messages?
2. Since "threads are treated as separate channels" per the docs, do I need to configure something specific for threads to receive bot messages?
3. Could the bindings section be causing issues? The bindings specify parent channel IDs, but threads have different channel IDs.
Setup:
- Linux
- Gateway running locally
- Auth: Claude CLI OAuth
- Discord bot has Message Content Intent enabled
- Bot A is a separate Python bot (discord.py) running on same machine
Observed behavior:
- Logs show Clawdbot processing Discord messages when I message in threads directly
- No logs appear when Bot A posts the @mention in threads
