Skip to content

Commit

Permalink
fix(DMChannel): Correct partial typo (#9773)
Browse files Browse the repository at this point in the history
fix(DMChannel): correct partial typo
  • Loading branch information
Jiralite authored Aug 14, 2023
1 parent 188877c commit c1ff545
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 @@ -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);
}
}
Expand Down

0 comments on commit c1ff545

Please sign in to comment.