Skip to main content
Module

x/discord_api_types/v8.ts>APIWebhook

Up to date Discord API Typings, versioned by the API version
Go to Latest
interface APIWebhook
Re-export
Deprecated
Deprecated

API and gateway v8 are deprecated and the types will not receive further updates, please update to v10.

import { type APIWebhook } from "https://deno.land/x/discord_api_types@0.37.11/v8.ts";

Properties

The id of the webhook

optional
guild_id: Snowflake

The guild id this webhook is for

channel_id: Snowflake

The channel id this webhook is for

optional
user: APIUser

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

See https://discord.com/developers/docs/resources/user#user-object

name: string | null

The default name of the webhook

avatar: string | null

The default avatar of the webhook

optional
token: string

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

application_id: Snowflake | null

The bot/OAuth2 application that created this webhook

optional
source_guild: APIPartialGuild

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

optional
source_channel: APIPartialChannel

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

optional
url: string

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