Skip to content

Commit

Permalink
revert: fix(DMChannel): recipientId edge case (#9013)
Browse files Browse the repository at this point in the history
Revert "fix(DMChannel): recipientId edge case (#8950)"

This reverts commit 7ce9909.

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
almeidx and kodiakhq[bot] committed Jan 10, 2023
1 parent f3fe3ce commit 7dad50e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/discord.js/src/structures/DMChannel.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class DMChannel extends BaseChannel {
super._patch(data);

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

/**
* The recipient's id
Expand Down

2 comments on commit 7dad50e

@vercel
Copy link

@vercel vercel bot commented on 7dad50e Jan 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 7dad50e Jan 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.