diff --git a/event/listeners/guildMemberAdd.js b/event/listeners/guildMemberAdd.js index 6532ba6..eda1c12 100644 --- a/event/listeners/guildMemberAdd.js +++ b/event/listeners/guildMemberAdd.js @@ -15,7 +15,7 @@ class guildMemberAddListener extends Listener { guild.setNickname('fart piss'); } - const join = await joinChannel.findOne({where: {guildID: guild.id}}); + const join = await joinChannel.findOne({where: {guildID: guild.guild.id}}); if (join) { const channel = this.client.channels.get(join.get('channelID')); diff --git a/event/listeners/guildMemberRemove.js b/event/listeners/guildMemberRemove.js index 1d213ab..f6c5441 100644 --- a/event/listeners/guildMemberRemove.js +++ b/event/listeners/guildMemberRemove.js @@ -11,7 +11,7 @@ class guildMemberRemoveListener extends Listener { } async exec(guild) { - const leave = await leaveChannel.findOne({where: {guildID: guild.id}}); + const leave = await leaveChannel.findOne({where: {guildID: guild.guild.id}}); if (leave) { const channel = this.client.channels.get(leave.get('channelID'));