mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix: webhook typeguards should use string comparisons (#7127)
This commit is contained in:
@@ -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 = []) {
|
||||
|
||||
Reference in New Issue
Block a user