Module

x/discordeno/mod.ts>executeWebhook

Discord API library for Deno
Latest
function executeWebhook
import { executeWebhook } from "https://dotland.deno.dev/x/discordeno@18.0.1/mod.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.
options: ExecuteWebhook
  • The parameters for the execution of the webhook.

Returns

Promise<Message | undefined>

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