interface APIWebhook

external
export interface APIWebhook

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

external
application_id : Snowflake | null

The bot/OAuth2 application that created this webhook

external
avatar : string | null

The default avatar of the webhook

external
channel_id : Snowflake

The channel id this webhook is for

optionalexternal
guild_id? : Snowflake

The guild id this webhook is for

external
id : Snowflake

The id of the webhook

external
name : string | null

The default name of the webhook

optionalexternal
source_channel? : APIPartialChannel

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

optionalexternal
source_guild? : APIPartialGuild

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

optionalexternal
token? : string

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

external
type : WebhookType

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

optionalexternal
url? : string

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

optionalexternal
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