mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 13:03:31 +01:00
feat: add typeguards to webhooks (#6850)
This commit is contained in:
5
typings/index.d.ts
vendored
5
typings/index.d.ts
vendored
@@ -2218,6 +2218,11 @@ export class Webhook extends WebhookMixin() {
|
||||
public sourceChannel: NewsChannel | APIPartialChannel | null;
|
||||
public token: string | null;
|
||||
public type: WebhookType;
|
||||
public isIncoming(): this is this & { token: string };
|
||||
public isChannelFollower(): this is this & {
|
||||
sourceGuild: Guild | APIPartialGuild;
|
||||
sourceChannel: NewsChannel | APIPartialChannel;
|
||||
};
|
||||
}
|
||||
|
||||
export class WebhookClient extends WebhookMixin(BaseClient) {
|
||||
|
||||
Reference in New Issue
Block a user