mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01:00
fix: webhook typeguards should use string comparisons (#7127)
This commit is contained in:
@@ -415,7 +415,7 @@ class Webhook {
|
|||||||
* @returns {boolean}
|
* @returns {boolean}
|
||||||
*/
|
*/
|
||||||
isChannelFollower() {
|
isChannelFollower() {
|
||||||
return this.type === WebhookTypes['Channel Follower'];
|
return this.type === 'Channel Follower';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -423,7 +423,7 @@ class Webhook {
|
|||||||
* @returns {boolean}
|
* @returns {boolean}
|
||||||
*/
|
*/
|
||||||
isIncoming() {
|
isIncoming() {
|
||||||
return this.type === WebhookTypes.Incoming;
|
return this.type === 'Incoming';
|
||||||
}
|
}
|
||||||
|
|
||||||
static applyToClass(structure, ignore = []) {
|
static applyToClass(structure, ignore = []) {
|
||||||
|
|||||||
Reference in New Issue
Block a user