Skip to main content

DiscordWebhook

Documentation


Documentation / @discordeno/types / DiscordWebhook

Interface: DiscordWebhook

Defined in: discord/webhook.ts:8

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

Properties

application_id

application_id: string | null

Defined in: discord/webhook.ts:26

The bot/OAuth2 application that created this webhook


avatar

avatar: string | null

Defined in: discord/webhook.ts:22

The default user avatar hash of the webhook


channel_id

channel_id: string | null

Defined in: discord/webhook.ts:16

The channel id this webhook is for


guild_id?

optional guild_id?: string | null

Defined in: discord/webhook.ts:14

The guild id this webhook is for


id

id: string

Defined in: discord/webhook.ts:10

The id of the webhook


name

name: string | null

Defined in: discord/webhook.ts:20

The default name of the webhook


source_channel?

optional source_channel?: Partial<DiscordChannel>

Defined in: discord/webhook.ts:30

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


source_guild?

optional source_guild?: Partial<DiscordGuild>

Defined in: discord/webhook.ts:28

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


token?

optional token?: string

Defined in: discord/webhook.ts:24

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


type

type: WebhookTypes

Defined in: discord/webhook.ts:12

The type of the webhook


url?

optional url?: string

Defined in: discord/webhook.ts:32

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


user?

optional user?: DiscordUser

Defined in: discord/webhook.ts:18

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