Skip to content

Commit

Permalink
fix: webhook typeguards should use string comparisons (#7127)
Browse files Browse the repository at this point in the history
  • Loading branch information
suneettipirneni committed Dec 21, 2021
1 parent 77489b9 commit 645b3f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/structures/Webhook.js
Expand Up @@ -415,15 +415,15 @@ class Webhook {
* @returns {boolean}
*/
isChannelFollower() {
return this.type === WebhookTypes['Channel Follower'];
return this.type === 'Channel Follower';
}

/**
* Whether or not this webhook is an incoming webhook.
* @returns {boolean}
*/
isIncoming() {
return this.type === WebhookTypes.Incoming;
return this.type === 'Incoming';
}

static applyToClass(structure, ignore = []) {
Expand Down

0 comments on commit 645b3f8

Please sign in to comment.