forked from Supositware/Haha-Yes
Fix join/leave message
This commit is contained in:
parent
c9a2cd520c
commit
7d42df6737
2 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ class guildMemberAddListener extends Listener {
|
||||||
guild.setNickname('fart piss');
|
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) {
|
if (join) {
|
||||||
const channel = this.client.channels.get(join.get('channelID'));
|
const channel = this.client.channels.get(join.get('channelID'));
|
||||||
|
|
|
@ -11,7 +11,7 @@ class guildMemberRemoveListener extends Listener {
|
||||||
}
|
}
|
||||||
|
|
||||||
async exec(guild) {
|
async exec(guild) {
|
||||||
const leave = await leaveChannel.findOne({where: {guildID: guild.id}});
|
const leave = await leaveChannel.findOne({where: {guildID: guild.guild.id}});
|
||||||
if (leave) {
|
if (leave) {
|
||||||
const channel = this.client.channels.get(leave.get('channelID'));
|
const channel = this.client.channels.get(leave.get('channelID'));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue