mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-12 15:57:43 +02:00
Demotivational with image support
This commit is contained in:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user