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

x/discordeno/helpers/mod.ts>createInvite

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

Creates an invite to a channel in a guild.

Parameters

bot: Bot
  • The bot instance to use to make the request.
channelId: BigString
  • The ID of the channel to create the invite to.
optional
options: CreateChannelInvite = [UNSUPPORTED]
  • The parameters for the creation of the invite.

Returns

Promise<BaseInvite>

An instance of the created BaseInvite | Invite.