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

x/discordeno/helpers/webhooks/mod.ts

Discord API library for Deno
Go to Latest
import * as discordeno from "https://deno.land/x/discordeno@13.0.0-rc45/helpers/webhooks/mod.ts";

Functions

Create a new webhook. Requires the MANAGE_WEBHOOKS permission. Returns a webhook object on success. Webhook names follow our naming restrictions that can be found in our Usernames and Nicknames documentation, with the following additional stipulations:

Delete a webhook permanently. Requires the MANAGE_WEBHOOKS permission. Returns a undefined on success

Delete a webhook permanently. Returns a undefined on success

Edit a webhook. Requires the MANAGE_WEBHOOKS permission. Returns the updated webhook object on success.

Edit a webhook. Returns the updated webhook object on success.

Returns the new webhook object for the given id.

Returns a previously-sent webhook message from the same token. Returns a message object on success.

Returns a list of guild webhooks objects. Requires the MANAGE_WEBHOOKs permission.

Returns the new webhook object for the given id, this call does not require authentication and returns no user in the webhook object.

Send a webhook with webhook Id and webhook token