Skip to main content

Webhook

@discordeno/botDocs


Documentation / @discordeno/bot / Webhook

Interface: Webhook

Properties

applicationId?

optional applicationId: bigint

The bot/OAuth2 application that created this webhook

Defined in

packages/bot/src/transformers/types.ts:1729


avatar?

optional avatar: bigint

The default user avatar hash of the webhook

Defined in

packages/bot/src/transformers/types.ts:1727


channelId?

optional channelId: bigint

The channel id this webhook is for

Defined in

packages/bot/src/transformers/types.ts:1721


guildId?

optional guildId: bigint

The guild id this webhook is for

Defined in

packages/bot/src/transformers/types.ts:1719


id

id: bigint

The id of the webhook

Defined in

packages/bot/src/transformers/types.ts:1717


name?

optional name: string

The default name of the webhook

Defined in

packages/bot/src/transformers/types.ts:1725


sourceChannel?

optional sourceChannel: Partial<Channel>

The channel that this webhook is following (returned for Channel Follower Webhooks)

Defined in

packages/bot/src/transformers/types.ts:1733


sourceGuild?

optional sourceGuild: Partial<Guild>

The guild of the channel that this webhook is following (returned for Channel Follower Webhooks)

Defined in

packages/bot/src/transformers/types.ts:1731


token?

optional token: string

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

Defined in

packages/bot/src/transformers/types.ts:1713


type

type: WebhookTypes

The type of the webhook

Defined in

packages/bot/src/transformers/types.ts:1711


url?

optional url: string

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

Defined in

packages/bot/src/transformers/types.ts:1715


user?

optional user: User

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

Defined in

packages/bot/src/transformers/types.ts:1723