fix: webhook typeguards should use string comparisons (#7127)

This commit is contained in:
Suneet Tipirneni
2021-12-21 03:16:11 -05:00
committed by GitHub
parent 77489b90fc
commit 645b3f84f4

View File

@@ -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 = []) {