diff --git a/src/structures/Webhook.js b/src/structures/Webhook.js index 3f2db5cac..2d79537e5 100644 --- a/src/structures/Webhook.js +++ b/src/structures/Webhook.js @@ -232,7 +232,7 @@ class Webhook { * @returns {Promise} */ async edit({ name = this.name, avatar, channel }, reason) { - if (avatar && typeof avatar === 'string' && !avatar.startsWith('data:')) { + if (avatar && !(typeof avatar === 'string' && avatar.startsWith('data:'))) { avatar = await DataResolver.resolveImage(avatar); } if (channel) channel = channel instanceof Channel ? channel.id : channel;