From e74e8ce171c1f97393fb01e7f316753e55344d6a Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Sat, 17 Mar 2018 13:24:31 +0000 Subject: [PATCH] Display channel name right --- commands/image-edit/demotivational-poster.js | 3 +-- commands/info/channel.js | 2 +- package.json | 2 +- types/image.js | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/commands/image-edit/demotivational-poster.js b/commands/image-edit/demotivational-poster.js index 3407c78d..53cefee6 100644 --- a/commands/image-edit/demotivational-poster.js +++ b/commands/image-edit/demotivational-poster.js @@ -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 }) } ] }); diff --git a/commands/info/channel.js b/commands/info/channel.js index d1a8590f..09f8160b 100644 --- a/commands/info/channel.js +++ b/commands/info/channel.js @@ -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', diff --git a/package.json b/package.json index 1f8f8c5e..110e2123 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "69.0.0", + "version": "69.0.1", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": { diff --git a/types/image.js b/types/image.js index edfa07be..a221238d 100644 --- a/types/image.js +++ b/types/image.js @@ -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;