diff --git a/commands/admin/bye.js b/commands/admin/bye.js index c3f9709..333b74d 100644 --- a/commands/admin/bye.js +++ b/commands/admin/bye.js @@ -58,7 +58,7 @@ class byeCommand extends Command { let messageContent = messages.map(messages => messages.content); if (messageContent == 'y' || messageContent == 'yes') { const body = {guildID: message.guild.id, channelID: message.channel.id, message: args.message}; - await leave.update(body, {where: {guildID: message.guild.id}}); + await leaveChannel.update(body, {where: {guildID: message.guild.id}}); return message.channel.send(`The leave message have been set with ${args.message}`); } else { return message.channel.send('Not updating.'); diff --git a/commands/admin/welcome.js b/commands/admin/welcome.js index 171fbbe..23c8ab4 100644 --- a/commands/admin/welcome.js +++ b/commands/admin/welcome.js @@ -57,7 +57,7 @@ class welcomeCommand extends Command { let messageContent = messages.map(messages => messages.content); if (messageContent == 'y' || messageContent == 'yes') { const body = {guildID: message.guild.id, channelID: message.channel.id, message: args.message}; - await join.update(body, {where: {guildID: message.guild.id}}); + await joinChannel.update(body, {where: {guildID: message.guild.id}}); return message.channel.send(`The join message have been set with ${args.message}`); } else { return message.channel.send('Not updating.');