From 645b3f84f47f966e4c314bf6a9fcb216a503e6f8 Mon Sep 17 00:00:00 2001 From: Suneet Tipirneni <77477100+suneettipirneni@users.noreply.github.com> Date: Tue, 21 Dec 2021 03:16:11 -0500 Subject: [PATCH] fix: webhook typeguards should use string comparisons (#7127) --- src/structures/Webhook.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structures/Webhook.js b/src/structures/Webhook.js index cb541b209ce1..123411278c44 100644 --- a/src/structures/Webhook.js +++ b/src/structures/Webhook.js @@ -415,7 +415,7 @@ class Webhook { * @returns {boolean} */ isChannelFollower() { - return this.type === WebhookTypes['Channel Follower']; + return this.type === 'Channel Follower'; } /** @@ -423,7 +423,7 @@ class Webhook { * @returns {boolean} */ isIncoming() { - return this.type === WebhookTypes.Incoming; + return this.type === 'Incoming'; } static applyToClass(structure, ignore = []) {