From 95280becac4c6f55f05388ee8826958b4fbbef5e Mon Sep 17 00:00:00 2001 From: loicbersier Date: Wed, 17 Jul 2019 01:17:10 +0200 Subject: [PATCH] still show raw tag even when no owner --- commands/utility/seetag.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/commands/utility/seetag.js b/commands/utility/seetag.js index aaf8f194..cacfbf4d 100644 --- a/commands/utility/seetag.js +++ b/commands/utility/seetag.js @@ -23,8 +23,8 @@ class seetagCommand extends Command { } ], description: { - content: 'Show the list of tag for this server.', - usage: '', + content: 'Show the list of tag for this server. --all to get a txt file with info about every tag on the server', + usage: '[name of tag]', examples: [''] } }); @@ -42,6 +42,16 @@ class seetagCommand extends Command { .addField('Response:', tagList['dataValues']['response']) .addField('Creator:', `${user.username}#${user.discriminator} (${user.id})`); + return message.channel.send(TagEmbed); + }) + .catch(() => { + const TagEmbed = new MessageEmbed() + .setColor('#ff9900') + .setTitle(message.guild.name) + .addField('Trigger:', tagList['dataValues']['trigger']) + .addField('Response:', tagList['dataValues']['response']) + .addField('Creator:', 'No user info.'); + return message.channel.send(TagEmbed); }); } else if (args.all) {