forked from Supositware/Haha-Yes
still show raw tag even when no owner
This commit is contained in:
parent
07ceb10ed6
commit
95280becac
1 changed files with 12 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue