fix(DMChannel): Correct partial typo (#9773)

fix(DMChannel): correct partial typo
This commit is contained in:
Jiralite 2023-08-14 18:11:46 +01:00 committed by GitHub
parent 188877c50a
commit c1ff545bf1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,7 +38,7 @@ class DMChannel extends BaseChannel {
*/
this.recipientId = recipient.id;
if ('username' in recipient || this.client.options.partials.includes(Partials.Users)) {
if ('username' in recipient || this.client.options.partials.includes(Partials.User)) {
this.client.users._add(recipient);
}
}