Revert "choice argument type"

This reverts commit 679bb538cb.
This commit is contained in:
Daniel Odendahl Jr
2018-03-17 13:22:07 +00:00
parent 12e8af1e92
commit d74e2c9d96
17 changed files with 121 additions and 84 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ module.exports = class ChannelInfoCommand extends Command {
const embed = new MessageEmbed()
.setColor(0x00AE86)
.addField(' Name',
channel.type !== 'dm' ? channel.name : `@${channel.recipient.username}`, true)
channel.name || 'None', true)
.addField(' ID',
channel.id, true)
.addField(' NSFW',
+6 -2
View File
@@ -15,9 +15,13 @@ module.exports = class EmojiListCommand extends Command {
{
key: 'type',
prompt: `What type of emoji would you like to view? Either ${list(types, 'or')}.`,
type: 'choice',
type: 'string',
default: 'regular',
choices: types
validate: type => {
if (types.includes(type.toLowerCase())) return true;
return `Invalid type, please enter either ${list(types, 'or')}.`;
},
parse: type => type.toLowerCase()
}
]
});