say when its not updating

This commit is contained in:
loicbersier 2019-07-20 22:34:12 +02:00
parent 92204910f8
commit 30d8258c5a

View file

@ -50,6 +50,8 @@ class TagCommand extends Command {
const body = {trigger: args.trigger, response: args.response, ownerID: message.author.id, serverID: message.guild.id}; const body = {trigger: args.trigger, response: args.response, ownerID: message.author.id, serverID: message.guild.id};
await Tag.update(body, {where: {trigger: args.trigger, serverID: message.guild.id}}); await Tag.update(body, {where: {trigger: args.trigger, serverID: message.guild.id}});
return message.channel.send(`tag have been set to ${args.trigger} : ${args.response}`); return message.channel.send(`tag have been set to ${args.trigger} : ${args.response}`);
} else {
return message.channel.send('Not updating.');
} }
}) })
.catch(err => { .catch(err => {