Skip to main content
Module

x/discordeno/mod.ts>DiscordIncomingWebhook

Discord API library for Deno
Latest
interface DiscordIncomingWebhook
import { type DiscordIncomingWebhook } from "https://deno.land/x/discordeno@18.0.1/mod.ts";

Properties

type: WebhookTypes

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

The guild id this webhook is for

channel_id: string

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)