Skip to main content

Webhook

@discordeno/bot


Documentation / @discordeno/bot / Webhook

Interface: Webhook

Defined in: packages/bot/src/transformers/types.ts:1779

Properties

applicationId?

optional applicationId: bigint

Defined in: packages/bot/src/transformers/types.ts:1799

The bot/OAuth2 application that created this webhook


avatar?

optional avatar: bigint

Defined in: packages/bot/src/transformers/types.ts:1797

The default user avatar hash of the webhook


channelId?

optional channelId: bigint

Defined in: packages/bot/src/transformers/types.ts:1791

The channel id this webhook is for


guildId?

optional guildId: bigint

Defined in: packages/bot/src/transformers/types.ts:1789

The guild id this webhook is for


id

id: bigint

Defined in: packages/bot/src/transformers/types.ts:1787

The id of the webhook


name?

optional name: string

Defined in: packages/bot/src/transformers/types.ts:1795

The default name of the webhook


sourceChannel?

optional sourceChannel: Partial<Channel>

Defined in: packages/bot/src/transformers/types.ts:1803

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


sourceGuild?

optional sourceGuild: Partial<Guild>

Defined in: packages/bot/src/transformers/types.ts:1801

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


token?

optional token: string

Defined in: packages/bot/src/transformers/types.ts:1783

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


type

type: WebhookTypes

Defined in: packages/bot/src/transformers/types.ts:1781

The type of the webhook


url?

optional url: string

Defined in: packages/bot/src/transformers/types.ts:1785

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


user?

optional user: User

Defined in: packages/bot/src/transformers/types.ts:1793

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