Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/discordeno/mod.ts>getWebhookWithToken

Discord API library for Deno
Go to Latest
function getWebhookWithToken
import { getWebhookWithToken } from "https://deno.land/x/discordeno@17.0.1/mod.ts";

Gets a webhook using the webhook token, thereby bypassing the need for authentication + permissions.

Parameters

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

Returns

Promise<Webhook>

An instance of Webhook.