diff options
| author | Daisy S. Hollman <thewholedaisy@gmail.com> | 2026-04-14 14:46:42 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-14 14:46:42 -0700 |
| commit | 48aa43517886014e90ee80a6461f9de75045369d (patch) | |
| tree | 351b284fea7172fb893509c1a215c8bd4e30384b /plugins/example-plugin/commands/example-command.md | |
| parent | 7e401edac7ca6449c4f549fda9e1b43385496bef (diff) | |
fix(discord): use cached author.id when DMChannel.recipientId is null (#1365)
DMChannel.recipientId can be null when client.channels.fetch() returns
a DM channel with a cold cache. The inbound gate correctly uses
msg.author.id, but fetchAllowedChannel relied on recipientId, so
replies to allowlisted DMs intermittently failed with "channel not
allowlisted" after session restart.
Maintain a channelId→userId map populated during inbound handling and
fall back to it when recipientId is null.
Fixes anthropics/claude-code#40576
Fixes anthropics/claude-code#41647
:house: Remote-Dev: homespace
Diffstat (limited to 'plugins/example-plugin/commands/example-command.md')
0 files changed, 0 insertions, 0 deletions
