Demotivational with image support

This commit is contained in:
Daniel Odendahl Jr
2017-11-20 22:42:53 +00:00
parent 0d3c2cfb1c
commit 3dc47731e5
4 changed files with 21 additions and 19 deletions
+2 -2
View File
@@ -16,11 +16,11 @@ class ImageArgumentType extends ArgumentType {
return true;
}
parse(value, msg) {
parse(value, msg, arg) {
if (!msg.attachments.size) {
return this.client.registry.types.get('user').parse(value, msg).displayAvatarURL({
format: 'png',
size: 512
size: arg.avatarSize || 512
});
}
return msg.attachments.first().url;