Display channel name right

This commit is contained in:
Daniel Odendahl Jr
2018-03-17 13:24:31 +00:00
parent d74e2c9d96
commit e74e8ce171
4 changed files with 4 additions and 5 deletions
+1 -2
View File
@@ -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 })
}
]
});
+1 -1
View File
@@ -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
View File
@@ -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
View File
@@ -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;