Skip to main content
Module

x/harmony/mod.ts>RESTEndpoints#createChannelInvite

An easy to use Discord API Library for Deno.
Go to Latest
method RESTEndpoints.prototype.createChannelInvite
Re-export
import { RESTEndpoints } from "https://deno.land/x/harmony@v2.9.0/mod.ts";

Create a new invite object for the channel. Only usable for guild channels. Requires the CREATE_INSTANT_INVITE permission. All JSON parameters for this route are optional, however the request body is not. If you are not sending any fields, you still have to send an empty JSON object ({}). Returns an invite object. Fires an Invite Create Gateway event.

Parameters

channelId: string
optional
payload: Partial<InvitePayload> = [UNSUPPORTED]