Class UnknownInvite

Invite of unknown type

Hierarchy (View Summary)

Constructors

Properties

Methods

Constructors

Properties

client?: Client
type: "Group" | "Server" | "None"

Methods

  • Create an Invite from an API Invite

    Parameters

    • client: Client

      Client

    • invite:
          | {
              _id: string;
              channel: string;
              creator: string;
              expires?: null
              | string;
              max_uses?: null | number;
              server: string;
              type: "Server";
              uses: number;
          }
          | {
              _id: string;
              channel: string;
              creator: string;
              expires?: null
              | string;
              max_uses?: null | number;
              type: "Group";
              uses: number;
          }

      Data

      • {
            _id: string;
            channel: string;
            creator: string;
            expires?: null | string;
            max_uses?: null | number;
            server: string;
            type: "Server";
            uses: number;
        }
        • _id: string

          Invite code

        • channel: string

          Id of the server channel this invite points to

        • creator: string

          Id of user who created this invite

        • Optionalexpires?: null | string

          Timestamp at which this invite expires

        • Optionalmax_uses?: null | number

          Format: uint64

          Maximum number of times this invite can be used

        • server: string

          Id of the server this invite points to

        • type: "Server"
        • uses: number

          Format: uint64

          Number of times this invite has been used

      • {
            _id: string;
            channel: string;
            creator: string;
            expires?: null | string;
            max_uses?: null | number;
            type: "Group";
            uses: number;
        }
        • _id: string

          Invite code

        • channel: string

          Id of the group channel this invite points to

        • creator: string

          Id of user who created this invite

        • Optionalexpires?: null | string

          Timestamp at which this invite expires

        • Optionalmax_uses?: null | number

          Format: uint64

          Maximum number of times this invite can be used

        • type: "Group"
        • uses: number

          Format: uint64

          Number of times this invite has been used

    Returns ChannelInvite

    Invite