APIWebhook

https://discord.com/developers/docs/resources/webhook#webhook-object

Signature

export interface APIWebhook

Properties

type: WebhookType;

The type of the webhook See https://discord.com/developers/docs/resources/webhook#webhook-object-webhook-types

user?: APIUser;

The user this webhook was created by (not returned when getting a webhook with its token) See https://discord.com/developers/docs/resources/user#user-object

name: string | null;

The default name of the webhook

avatar: string | null;

The default avatar of the webhook

token?: string;

The secure token of the webhook (returned for Incoming Webhooks)

source_guild?: APIPartialGuild;

The guild of the channel that this webhook is following (returned for Channel Follower Webhooks)

url?: string;

The url used for executing the webhook (returned by the webhooks OAuth2 flow)