DiscordWebhook
Documentation / @discordeno/types / DiscordWebhook
Interface: DiscordWebhook
Defined in: discord/webhook.ts:8
https://docs.discord.com/developers/resources/webhook#webhook-object-webhook-structure
Properties
application_id
application_id:
string|null
Defined in: discord/webhook.ts:26
The bot/OAuth2 application that created this webhook
avatar
avatar:
string|null
Defined in: discord/webhook.ts:22
The default user avatar hash of the webhook
channel_id
channel_id:
string|null
Defined in: discord/webhook.ts:16
The channel id this webhook is for
guild_id?
optionalguild_id?:string|null
Defined in: discord/webhook.ts:14
The guild id this webhook is for
id
id:
string
Defined in: discord/webhook.ts:10
The id of the webhook
name
name:
string|null
Defined in: discord/webhook.ts:20
The default name of the webhook
source_channel?
optionalsource_channel?:Partial<DiscordChannel>
Defined in: discord/webhook.ts:30
The channel that this webhook is following (returned for Channel Follower Webhooks)
source_guild?
optionalsource_guild?:Partial<DiscordGuild>
Defined in: discord/webhook.ts:28
The guild of the channel that this webhook is following (returned for Channel Follower Webhooks)
token?
optionaltoken?:string
Defined in: discord/webhook.ts:24
The secure token of the webhook (returned for Incoming Webhooks)
type
type:
WebhookTypes
Defined in: discord/webhook.ts:12
The type of the webhook
url?
optionalurl?:string
Defined in: discord/webhook.ts:32
The url used for executing the webhook (returned by the webhooks OAuth2 flow)
user?
optionaluser?:DiscordUser
Defined in: discord/webhook.ts:18
The user this webhook was created by (not returned when getting a webhook with its token)