#13652: fix(discord): ensure default bot loads when multiple accounts are con…
channel: discord
stale
Cluster:
Signal and Discord Fixes
…figured.
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
Fixed a bug where the default Discord bot account would not load when `channels.discord.token` was configured alongside `channels.discord.accounts`. The code now correctly includes the "default" account ID in the account list when a root-level token exists, ensuring the default bot starts properly in multi-account configurations.
<h3>Confidence Score: 5/5</h3>
- This PR is safe to merge with no risk
- The change is a targeted bug fix with clear logic: it ensures the default account is included when a root token is configured. The implementation correctly handles the multi-account configuration scenario and aligns with the token resolution logic in `resolveDiscordToken`. No edge cases or potential issues identified.
- No files require special attention
<!-- greptile_other_comments_section -->
<sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub>
<!-- /greptile_comment -->
Most Similar PRs
#19615: fix(discord): include default account when sub-accounts are configured
by prue-starfield · 2026-02-18
80.0%
#13430: fix(discord): properly handle bot-sent @everyone mentions
by wassimbensalem · 2026-02-10
79.9%
#14259: fix(discord): add timeout to restart to prevent duplicate responses
by George5562 · 2026-02-11
78.4%
#17395: fix(discord): default dm config for sub-accounts to prevent silent ...
by deggertsen · 2026-02-15
77.4%
#14359: fix: prefer named Telegram account over orphan 'default' in binding...
by itsGustav · 2026-02-12
76.1%
#21463: fix(discord): prevent WebSocket death spiral + fix numeric channel ID…
by akropp · 2026-02-20
76.1%
#15900: fix(discord): filter bot's own messages early to prevent self-DoS
by Shuai-DaiDai · 2026-02-14
76.0%
#22611: fix(discord): allow messages from other instance bots in multi-acco...
by dae-sun · 2026-02-21
74.5%
#11347: fix: scope Telegram update offset to bot token
by anooprdawar · 2026-02-07
74.1%
#9577: feat: Add apiRoot option for custom Telegram Bot API server endpoint
by vfiee · 2026-02-05
73.6%