Skip to main content

DiscordApplicationWebhook

@discordeno/bot


Documentation / @discordeno/bot / DiscordApplicationWebhook

Interface: DiscordApplicationWebhook

Defined in: packages/types/dist/types/discord/webhook.d.ts:35

https://discord.com/developers/docs/resources/webhook#webhook-object-webhook-structure

Properties

application_id

application_id: null | string

Defined in: packages/types/dist/types/discord/webhook.d.ts:55

The bot/OAuth2 application that created this webhook


avatar

avatar: null | string

Defined in: packages/types/dist/types/discord/webhook.d.ts:53

The default user avatar hash of the webhook


channel_id?

optional channel_id: null | string

Defined in: packages/types/dist/types/discord/webhook.d.ts:47

The channel id this webhook is for


guild_id?

optional guild_id: null | string

Defined in: packages/types/dist/types/discord/webhook.d.ts:45

The guild id this webhook is for


id

id: string

Defined in: packages/types/dist/types/discord/webhook.d.ts:43

The id of the webhook


name

name: null | string

Defined in: packages/types/dist/types/discord/webhook.d.ts:51

The default name of the webhook


source_channel?

optional source_channel: Partial<DiscordChannel>

Defined in: packages/types/dist/types/discord/webhook.d.ts:59

The channel that this webhook is following (returned for Channel Follower Webhooks), field will be absent if the webhook creator has since lost access to the guild where the followed channel resides


source_guild?

optional source_guild: Partial<DiscordGuild>

Defined in: packages/types/dist/types/discord/webhook.d.ts:57

The guild of the channel that this webhook is following (returned for Channel Follower Webhooks), field will be absent if the webhook creator has since lost access to the guild where the followed channel resides


token?

optional token: string

Defined in: packages/types/dist/types/discord/webhook.d.ts:39

The secure token of the webhook (returned for Incoming Webhooks)


type

type: Application

Defined in: packages/types/dist/types/discord/webhook.d.ts:37

The type of the webhook


url?

optional url: string

Defined in: packages/types/dist/types/discord/webhook.d.ts:41

The url used for executing the webhook (returned by the webhooks OAuth2 flow)


user?

optional user: DiscordUser

Defined in: packages/types/dist/types/discord/webhook.d.ts:49

The user this webhook was created by (not returned when getting a webhook with its token)