Skip to content

Commit

Permalink
data.interaction.guild_id => data.guild_id in Message
Browse files Browse the repository at this point in the history
  • Loading branch information
JustCat80 committed Aug 31, 2021
1 parent 0540edb commit 04f3753
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/structures/Message.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class Message extends Base {
if(this.channel.guild) {
interactionMember = this.channel.guild.members.update(data.interaction.member, this.channel.guild);
} else {
const guild = this._client.guilds.get(data.interaction.guild_id);
const guild = this._client.guilds.get(data.guild_id);
interactionMember = guild.members.update(data.interaction.member, guild);
}
} else if(this.channel.guild && this.channel.guild.members.has(data.interaction.user.id)) {
Expand Down

0 comments on commit 04f3753

Please sign in to comment.