Use avatarSize

This commit is contained in:
Dragon Fire
2024-05-09 00:23:04 -04:00
parent f881407643
commit 9118e0f054
91 changed files with 101 additions and 11 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ module.exports = class ImageOrAvatarArgument extends Argument {
const image = this.client.registry.types.get('image').parse(value, msg, arg);
if (image) return image;
const user = await this.client.registry.types.get('user').parse(value, msg, arg);
return user.displayAvatarURL({ extension: 'png', size: arg.avatarSize || 512 });
return user.displayAvatarURL({ extension: 'png', size: arg.avatarSize });
}
isEmpty(value, msg, arg) {