Interface APIWebhook

Hierarchy

  • APIWebhook

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?: APIPartialChannel

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

source_guild?: APIPartialGuild

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)

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)

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

Generated using TypeDoc