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

x/harmony/src/managers/invites.ts>InviteManager

An easy to use Discord API Library for Deno.
Latest
class InviteManager
import { InviteManager } from "https://deno.land/x/harmony@v2.9.1/src/managers/invites.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>