Make update work

This commit is contained in:
loicbersier 2019-11-27 16:03:40 +01:00
parent f5dc555e45
commit 8f3fbfcf12
2 changed files with 2 additions and 2 deletions

View file

@ -58,7 +58,7 @@ class byeCommand extends Command {
let messageContent = messages.map(messages => messages.content); let messageContent = messages.map(messages => messages.content);
if (messageContent == 'y' || messageContent == 'yes') { if (messageContent == 'y' || messageContent == 'yes') {
const body = {guildID: message.guild.id, channelID: message.channel.id, message: args.message}; 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}`); return message.channel.send(`The leave message have been set with ${args.message}`);
} else { } else {
return message.channel.send('Not updating.'); return message.channel.send('Not updating.');

View file

@ -57,7 +57,7 @@ class welcomeCommand extends Command {
let messageContent = messages.map(messages => messages.content); let messageContent = messages.map(messages => messages.content);
if (messageContent == 'y' || messageContent == 'yes') { if (messageContent == 'y' || messageContent == 'yes') {
const body = {guildID: message.guild.id, channelID: message.channel.id, message: args.message}; 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}`); return message.channel.send(`The join message have been set with ${args.message}`);
} else { } else {
return message.channel.send('Not updating.'); return message.channel.send('Not updating.');