Skip to main content
Module

x/harmony/mod.ts>RESTEndpoints#createWebhook

An easy to use Discord API Library for Deno.
Go to Latest
method RESTEndpoints.prototype.createWebhook
Re-export
import { RESTEndpoints } from "https://deno.land/x/harmony@v2.9.0/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

channelId: string
payload: { name?: string; avatar?: string; }