fixed command

This commit is contained in:
Loïc Bersier 2019-07-08 23:49:36 +02:00
parent e0556346ff
commit 256b8566d7

View file

@ -28,7 +28,7 @@ class removeResponseCommand extends Command {
} }
async exec(message, args) { async exec(message, args) {
const autoresponse = await autoResponse.findOne({where: {trigger: args.trigger, serverID: message.guild.id}}); const autoresponse = await autoResponse.findOne({where: {trigger: args.trigger}});
if (autoresponse) { if (autoresponse) {
autoResponse.destroy({where: {trigger: args.trigger}}); autoResponse.destroy({where: {trigger: args.trigger}});
return message.channel.send('Sucesffuly deleted the following autoresponse: ' + args.trigger); return message.channel.send('Sucesffuly deleted the following autoresponse: ' + args.trigger);