Skip to content

fix: pass history.values() to replaceFirstMessage#57

Merged
badLlama121 merged 1 commit into
mainfrom
feature/existential-dread
May 2, 2026
Merged

fix: pass history.values() to replaceFirstMessage#57
badLlama121 merged 1 commit into
mainfrom
feature/existential-dread

Conversation

@davelindsay84

Copy link
Copy Markdown
Collaborator

Discord.js Collection iterates as [id, Message] pairs, not bare Message objects. replaceFirstMessage was receiving tuples so msg.author was always undefined, silently breaking !s in production.

🤖 Generated with Claude Code

Discord.js Collection iterates as [id, Message] pairs, not bare Messages.
Passing .values() gives replaceFirstMessage the Message objects it expects.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@badLlama121 badLlama121 self-requested a review May 2, 2026 16:55
@badLlama121 badLlama121 merged commit 7e513d6 into main May 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants