Skip to main content
Module

x/biscuit/mod.ts>Webhook

A Discord library that is easy to use but reliable on its core 🥠
Latest
class Webhook
implements Model
Re-export
import { Webhook } from "https://deno.land/x/biscuit@0.2.4/mod.ts";

Constructors

new
Webhook(session: Session, data: DiscordWebhook)

Properties

optional
applicationId: Snowflake
optional
avatar: bigint
optional
channelId: Snowflake
optional
guildId: Snowflake
readonly
id: Snowflake
readonly
session: Session
optional
token: string
optional
user: User

Methods

deleteMessage(messageId: Snowflake, threadId?: Snowflake): Promise<void>
editMessage(messageId?: Snowflake, options?: editMessageWithThread): Promise<Message>
execute(options?: executeWebhookOptions): Promise<(Message | undefined)>
fetch(): Promise<Webhook>
fetchMessage(messageId: Snowflake, threadId?: Snowflake): Promise<Message | undefined>