Skip to content

DiscordChannelWebhook

Defined in: bot/bot.type.ts:485

A webhook attached to a channel, as the bot API returns it.

optional avatar?: string | null

Defined in: bot/bot.type.ts:491

The avatar hash, or null for the default one.


channel_id: string

Defined in: bot/bot.type.ts:493

Id of the channel the webhook posts to.


id: string

Defined in: bot/bot.type.ts:487

The webhook id.


name: string | null

Defined in: bot/bot.type.ts:489

The webhook name, or null when unset.


optional token?: string

Defined in: bot/bot.type.ts:495

Present only on webhooks this application created; Discord omits it otherwise.


optional url?: string

Defined in: bot/bot.type.ts:497

Present only on webhooks this application created.