interface APIWebhook {
    application_id: null | string;
    avatar: null | string;
    channel_id: string;
    guild_id?: string;
    id: string;
    name: null | string;
    source_channel?: Required<
        _NonNullableFields<Pick<APIPartialChannel, "id" | "name">>,
    >;
    source_guild?: APIWebhookSourceGuild;
    token?: string;
    type: WebhookType;
    url?: string;
    user?: APIUser;
}

Properties

application_id: null | string

The bot/OAuth2 application that created this webhook

avatar: null | string

The default avatar of the webhook

channel_id: string

The channel id this webhook is for

guild_id?: string

The guild id this webhook is for

id: string

The id of the webhook

name: null | string

The default name of the webhook

source_channel?: Required<
    _NonNullableFields<Pick<APIPartialChannel, "id" | "name">>,
>

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

source_guild?: APIWebhookSourceGuild

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

token?: string

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

The type of the webhook

url?: string

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

user?: APIUser

The user this webhook was created by (not returned when getting a webhook with its token)