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

x/natico/examples/deps.ts>createWebhook

A powerful and customizable framework for Discordeno
Latest
function createWebhook
import { createWebhook } from "https://deno.land/x/natico@4.0.0-pre.4/examples/deps.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