Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
function editWebhookWithToken
import { editWebhookWithToken } from "https://deno.land/x/discordeno_patched@18.0.3/template/minimal/deps.ts";

Edits 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 edit.
token: string
  • The webhook token, used to edit the webhook.
options: Omit<ModifyWebhook, "channelId">

Returns

Promise<Webhook>

An instance of the edited Webhook.