mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 14:00:22 +02:00
@@ -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',
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user