From 8f3fbfcf129596d614d448328b7d5385cf012f82 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Wed, 27 Nov 2019 16:03:40 +0100 Subject: [PATCH] Make update work --- commands/admin/bye.js | 2 +- commands/admin/welcome.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/admin/bye.js b/commands/admin/bye.js index c3f97099..333b74dc 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 171fbbe1..23c8ab4e 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.');