Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/discordeno_patched/template/minimal/deps.ts>executeWebhook

Discord API library for Node and Deno
Go to Latest
function executeWebhook
import { executeWebhook } from "https://deno.land/x/discordeno_patched@18.0.2/template/minimal/deps.ts";

Executes a webhook, causing a message to be posted in the channel configured for the webhook.

Parameters

bot: Bot
  • The bot instance to use to make the request.
webhookId: BigString
  • The ID of the webhook to execute.
token: string
  • The webhook token, used to execute the webhook.
  • The parameters for the execution of the webhook.

Returns

Promise<Message | undefined>

An instance of the created Message, or undefined if the ExecuteWebhook.wait | wait property of the options object parameter is set to false.