Skip to content

Commit

Permalink
use info.guild_id when defining members
Browse files Browse the repository at this point in the history
  • Loading branch information
JustCat80 committed Aug 22, 2021
1 parent 5c20d05 commit 857f38b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/structures/CommandInteraction.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class CommandInteraction extends Interaction {
const membermap = new Collection(Member);
Object.entries(info.data.resolved.members).forEach(([id, member]) => {
member.user = {id};
membermap.set(id, new Member(member, this._client.guilds.get(this.guildID), this._client));
membermap.set(id, new Member(member, this._client.guilds.get(info.guild_id), this._client));
});
this.data.resolved.members = membermap;
}
Expand Down

0 comments on commit 857f38b

Please sign in to comment.