mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
fix(DMChannel): recipientId edge case (#8950)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
@@ -30,7 +30,7 @@ class DMChannel extends BaseChannel {
|
|||||||
super._patch(data);
|
super._patch(data);
|
||||||
|
|
||||||
if (data.recipients) {
|
if (data.recipients) {
|
||||||
const recipient = data.recipients[0];
|
const recipient = data.recipients.find(user => user.id !== this.client.user.id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The recipient's id
|
* The recipient's id
|
||||||
|
|||||||
Reference in New Issue
Block a user