forked from Supositware/Haha-Yes
fixed command
This commit is contained in:
parent
e0556346ff
commit
256b8566d7
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ class removeResponseCommand extends Command {
|
|||
}
|
||||
|
||||
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) {
|
||||
autoResponse.destroy({where: {trigger: args.trigger}});
|
||||
return message.channel.send('Sucesffuly deleted the following autoresponse: ' + args.trigger);
|
||||
|
|
Loading…
Reference in a new issue