Skip to content

Commit

Permalink
fix(DMChannel): recipientId edge case (#8950)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
almeidx and kodiakhq[bot] committed Dec 24, 2022
1 parent 0b8b114 commit 7ce9909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/discord.js/src/structures/DMChannel.js
Expand Up @@ -30,7 +30,7 @@ class DMChannel extends BaseChannel {
super._patch(data);

if (data.recipients) {
const recipient = data.recipients[0];
const recipient = data.recipients.find(user => user.id !== this.client.user.id);

/**
* The recipient's id
Expand Down

0 comments on commit 7ce9909

Please sign in to comment.