mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-12 08:14:47 +02:00
Display channel name right
This commit is contained in:
@@ -36,8 +36,7 @@ module.exports = class DemotivationalPosterCommand extends Command {
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 1024 }),
|
||||
avatarSize: 1024
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 1024 })
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
@@ -33,7 +33,7 @@ module.exports = class ChannelInfoCommand extends Command {
|
||||
const embed = new MessageEmbed()
|
||||
.setColor(0x00AE86)
|
||||
.addField('❯ Name',
|
||||
channel.name || 'None', true)
|
||||
channel.type === 'dm' ? `@${channel.recipient.username}` : channel.name, true)
|
||||
.addField('❯ ID',
|
||||
channel.id, true)
|
||||
.addField('❯ NSFW',
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "69.0.0",
|
||||
"version": "69.0.1",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ class ImageArgumentType extends ArgumentType {
|
||||
if (!msg.attachments.size) {
|
||||
return this.client.registry.types.get('user').parse(value, msg).displayAvatarURL({
|
||||
format: 'png',
|
||||
size: arg.avatarSize || 512
|
||||
size: 512
|
||||
});
|
||||
}
|
||||
return msg.attachments.first().url;
|
||||
|
||||
Reference in New Issue
Block a user