Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
interface DiscordApplicationWebhook
import { type DiscordApplicationWebhook } from "https://deno.land/x/discordeno@17.0.1/packages/embeds/deps.ts";

Properties

type: WebhookTypes.Application

The type of the webhook

optional
token: string

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

optional
url: string

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

id: string

The id of the webhook

optional
guild_id: string | null

The guild id this webhook is for

optional
channel_id: string | null

The channel id this webhook is for

optional
user: DiscordUser

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

name: string | null

The default name of the webhook

avatar: string | null

The default user avatar hash of the webhook

application_id: string | null

The bot/OAuth2 application that created this webhook

optional
source_guild: Partial<DiscordGuild>

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

optional
source_channel: Partial<DiscordChannel>

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