still show raw tag even when no owner

This commit is contained in:
loicbersier 2019-07-17 01:17:10 +02:00
parent 07ceb10ed6
commit 95280becac

View file

@ -23,8 +23,8 @@ class seetagCommand extends Command {
} }
], ],
description: { description: {
content: 'Show the list of tag for this server.', content: 'Show the list of tag for this server. --all to get a txt file with info about every tag on the server',
usage: '', usage: '[name of tag]',
examples: [''] examples: ['']
} }
}); });
@ -42,6 +42,16 @@ class seetagCommand extends Command {
.addField('Response:', tagList['dataValues']['response']) .addField('Response:', tagList['dataValues']['response'])
.addField('Creator:', `${user.username}#${user.discriminator} (${user.id})`); .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); return message.channel.send(TagEmbed);
}); });
} else if (args.all) { } else if (args.all) {