fix(DMChannel): recipientId edge case (#8950)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Almeida
2022-12-24 07:42:53 +00:00
committed by GitHub
parent 0b8b114761
commit 7ce990954e

View File

@@ -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