Discord.js v14

This commit is contained in:
Dragon Fire
2024-04-07 19:06:19 -04:00
parent 58c81aa912
commit f59826f7ab
272 changed files with 893 additions and 656 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({ format: 'png', size: arg.avatarSize || 512 });
return user.displayAvatarURL({ extension: 'png', size: arg.avatarSize || 512 });
}
isEmpty(value, msg, arg) {