Skip to content

Commit

Permalink
fix(DMChannel, GroupChannel): Missing client in constructor (#1539)
Browse files Browse the repository at this point in the history
  • Loading branch information
GweeKwee authored Aug 31, 2024
1 parent e0ff926 commit 171bf7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/structures/DMChannel.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class DMChannel extends Channel {
this.lastMessageID = data.last_message_id;
this.recipients = new Collection(User);
data.recipients.forEach((recipient) => {
this.recipients.add(client.users.add(recipient));
this.recipients.add(client.users.add(recipient, client));
});
this.messages = new Collection(Message, client.options.messageLimit);

Expand Down
2 changes: 1 addition & 1 deletion lib/structures/GroupChannel.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class GroupChannel extends Channel {
this.icon = data.icon;
this.recipients = new Collection(User);
data.recipients.forEach((recipient) => {
this.recipients.add(client.users.add(recipient));
this.recipients.add(client.users.add(recipient, client));
});
}

Expand Down

0 comments on commit 171bf7e

Please sign in to comment.