Fix join/leave message

This commit is contained in:
loicbersier 2019-12-06 16:54:37 +01:00
parent c9a2cd520c
commit 7d42df6737
2 changed files with 2 additions and 2 deletions

View file

@ -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'));

View file

@ -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'));