Skip to main content
Module

x/discordeno/mod.ts>createWebhook

Discord API library for Deno
Extremely Popular
Go to Latest
function createWebhook
import { createWebhook } from "https://deno.land/x/discordeno@13.0.0-rc45/mod.ts";

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:

Webhook names cannot be: 'clyde'

Parameters

bot: Bot
channelId: bigint
options: CreateWebhook