From 020b6da5d1980f87ace77f6141428f8a010586ab Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 30 Jan 2021 16:31:57 -0500 Subject: [PATCH] Fix --- types/image-or-avatar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/image-or-avatar.js b/types/image-or-avatar.js index 889785ce..c56afa5b 100644 --- a/types/image-or-avatar.js +++ b/types/image-or-avatar.js @@ -11,14 +11,14 @@ module.exports = class ImageOrAvatarArgumentType extends ArgumentType { return this.client.registry.types.get('user').validate(value, msg, arg, currentMsg); } - async parse(value, msg, arg) { + async parse(value, msg, arg, currentMsg) { const image = this.client.registry.types.get('image').parse(value, msg, arg, currentMsg); if (image) return image; const user = await this.client.registry.types.get('user').parse(value, msg, arg, currentMsg); return user.displayAvatarURL({ format: 'png', size: 512 }); } - isEmpty(value, msg, arg) { + isEmpty(value, msg, arg, currentMsg) { return this.client.registry.types.get('image').isEmpty(value, msg, arg, currentMsg) && this.client.registry.types.get('user').isEmpty(value, msg, arg, currentMsg); }