Options
All
  • Public
  • Public/Protected
  • All
Menu

Class InviteManager

Hierarchy

  • InviteManager

Index

Constructors

  • Parameters

    • token: string

      Bot's token

    • tokenType: string
    • version: APIVersions

      API Version

    Returns InviteManager

Methods

  • deleteInvite(code: string, reason?: string): Promise<Invite>
  • Remove an invitation

    Parameters

    • code: string

      Invite Code

    • Optional reason: string

      Reason for the deletion

    Returns Promise<Invite>

    • Invite Object
  • Get an invitation

    Parameters

    • code: string

      Invite Code

    • options: GetInviteOptions = {}

      Options for the query string

    Returns Promise<Invite>

    • Invite Object

Properties

version: APIVersions

API Version

#token: string

Bot's token

#tokenType: string

Token type

Generated using TypeDoc