Skip to main content
Module

x/harmony/mod.ts>InviteManager

An easy to use Discord API Library for Deno.
Latest
class InviteManager
import { InviteManager } from "https://deno.land/x/harmony@v2.9.0/mod.ts";

Constructors

new
InviteManager(client: Client, guild: Guild)

Methods

create(channel: string | GuildTextChannel, options?: CreateInviteOptions): Promise<Invite>

Create an Invite

delete(invite: string | Invite): Promise<boolean>

Delete an Invite

fetch(id: string, withCounts?: boolean): Promise<Invite>

Fetch an Invite

fetchAll(channel?: string | GuildTextChannel): Promise<Invite[]>

Fetch all Invites of a Guild or a specific Channel

fromPayload(invites: InvitePayload[]): Promise<boolean>
get(key: string): Promise<Invite | undefined>