Webhook
Documentation / @discordeno/bot / Webhook
Interface: Webhook
Defined in: bot/src/transformers/types.ts:1806
Properties
applicationId?
optional
applicationId:bigint
Defined in: bot/src/transformers/types.ts:1826
The bot/OAuth2 application that created this webhook
avatar?
optional
avatar:bigint
Defined in: bot/src/transformers/types.ts:1824
The default user avatar hash of the webhook
channelId?
optional
channelId:bigint
Defined in: bot/src/transformers/types.ts:1818
The channel id this webhook is for
guildId?
optional
guildId:bigint
Defined in: bot/src/transformers/types.ts:1816
The guild id this webhook is for
id
id:
bigint
Defined in: bot/src/transformers/types.ts:1814
The id of the webhook
name?
optional
name:string
Defined in: bot/src/transformers/types.ts:1822
The default name of the webhook
sourceChannel?
optional
sourceChannel:Partial
<Channel
>
Defined in: bot/src/transformers/types.ts:1830
The channel that this webhook is following (returned for Channel Follower Webhooks)
sourceGuild?
optional
sourceGuild:Partial
<Guild
>
Defined in: bot/src/transformers/types.ts:1828
The guild of the channel that this webhook is following (returned for Channel Follower Webhooks)
token?
optional
token:string
Defined in: bot/src/transformers/types.ts:1810
The secure token of the webhook (returned for Incoming Webhooks)
type
type:
WebhookTypes
Defined in: bot/src/transformers/types.ts:1808
The type of the webhook
url?
optional
url:string
Defined in: bot/src/transformers/types.ts:1812
The url used for executing the webhook (returned by the webhooks OAuth2 flow)
user?
optional
user:User
Defined in: bot/src/transformers/types.ts:1820
The user this webhook was created by (not returned when getting a webhook with its token)