Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/oasis/tests/deps.ts>DiscordApplicationWebhook

An object oriented Discordeno framework
Latest
interface DiscordApplicationWebhook
import { type DiscordApplicationWebhook } from "https://deno.land/x/oasis@2.1.0/tests/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)

optional
source_channel: Partial<DiscordChannel>

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

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)

optional
source_channel: Partial<DiscordChannel>

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