Skip to main content
Version: 0.37.24

APIWebhook

@deprecated

API and gateway v8 are deprecated and the types will not receive further updates, please update to v10.

Index

Properties

application_id

application_id: null | string

The bot/OAuth2 application that created this webhook

avatar

avatar: null | string

The default avatar of the webhook

channel_id

channel_id: string

The channel id this webhook is for

optionalguild_id

guild_id?: string

The guild id this webhook is for

id

id: string

The id of the webhook

name

name: null | string

The default name of the webhook

optionalsource_channel

source_channel?: APIPartialChannel

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

optionalsource_guild

source_guild?: APIPartialGuild

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

optionaltoken

token?: string

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

type

optionalurl

url?: string

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

optionaluser

user?: APIUser

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