DiscordChannelWebhook
Defined in: bot/bot.type.ts:485
A webhook attached to a channel, as the bot API returns it.
Properties
Section titled “Properties”avatar?
Section titled “avatar?”
optionalavatar?:string|null
Defined in: bot/bot.type.ts:491
The avatar hash, or null for the default one.
channel_id
Section titled “channel_id”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.
token?
Section titled “token?”
optionaltoken?:string
Defined in: bot/bot.type.ts:495
Present only on webhooks this application created; Discord omits it otherwise.
optionalurl?:string
Defined in: bot/bot.type.ts:497
Present only on webhooks this application created.