Skip to main content

DiscordIncomingWebhook

@discordeno/bot


Documentation / @discordeno/bot / DiscordIncomingWebhook

Interface: DiscordIncomingWebhook

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

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:28

The bot/OAuth2 application that created this webhook


avatar

avatar: null | string

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

The default user avatar hash of the webhook


channel_id

channel_id: string

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

The channel id this webhook is for


guild_id?

optional guild_id: string

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

The guild id this webhook is for


id

id: string

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

The id of the webhook


name

name: null | string

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

The default name of the webhook


source_channel?

optional source_channel: Partial<DiscordChannel>

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

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


source_guild?

optional source_guild: Partial<DiscordGuild>

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

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


token?

optional token: string

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

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


type

type: WebhookTypes

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

The type of the webhook


url?

optional url: string

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

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:22

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