Hierarchy

  • BaseManager<Member>
    • MemberManager

Constructors

Properties

[toStringTag]: string
client: Client
server: Server
size: number

Returns

the number of elements in the Map.

[species]: MapConstructor

Accessors

Methods

  • Returns an iterable of entries in the map.

    Returns IterableIterator<[string, Member]>

  • Ban a member from the server.

    Parameters

    • member: string | Member
    • Optional data: {
          reason?: string;
      }
      • Optional reason?: string

        Description

        Ban reason

    Returns Promise<void>

  • Returns void

  • Parameters

    • data: {
          _id: {
              server: string;
              user: string;
          };
          avatar?: {
              _id: string;
              content_type: string;
              deleted?: boolean;
              filename: string;
              message_id?: string;
              metadata: {
                  type: "File";
              } | {
                  type: "Text";
              } | {
                  height: number;
                  type: "Image";
                  width: number;
              } | {
                  height: number;
                  type: "Video";
                  width: number;
              } | {
                  type: "Audio";
              };
              object_id?: string;
              reported?: boolean;
              server_id?: string;
              size: number;
              tag: string;
              user_id?: string;
          };
          joined_at: string;
          nickname?: string;
          roles?: string[];
          timeout?: string;
      }
      • _id: {
            server: string;
            user: string;
        }

        Description

        Unique member id

        • server: string

          Description

          Server Id

        • user: string

          Description

          User Id

      • Optional avatar?: {
            _id: string;
            content_type: string;
            deleted?: boolean;
            filename: string;
            message_id?: string;
            metadata: {
                type: "File";
            } | {
                type: "Text";
            } | {
                height: number;
                type: "Image";
                width: number;
            } | {
                height: number;
                type: "Video";
                width: number;
            } | {
                type: "Audio";
            };
            object_id?: string;
            reported?: boolean;
            server_id?: string;
            size: number;
            tag: string;
            user_id?: string;
        }

        Description

        Avatar attachment

        • _id: string

          Description

          Unique Id

        • content_type: string

          Description

          Raw content type of this file

        • Optional deleted?: boolean

          Description

          Whether this file was deleted

        • filename: string

          Description

          Original filename

        • Optional message_id?: string
        • metadata: {
              type: "File";
          } | {
              type: "Text";
          } | {
              height: number;
              type: "Image";
              width: number;
          } | {
              height: number;
              type: "Video";
              width: number;
          } | {
              type: "Audio";
          }

          Description

          Parsed metadata of this file

        • Optional object_id?: string

          Description

          Id of the object this file is associated with

        • Optional reported?: boolean

          Description

          Whether this file was reported

        • Optional server_id?: string
        • size: number

          Format: int

          Description

          Size of this file (in bytes)

        • tag: string

          Description

          Tag / bucket this file was uploaded to

        • Optional user_id?: string
      • joined_at: string

        Description

        Time at which this user joined the server

      • Optional nickname?: string

        Description

        Member's nickname

      • Optional roles?: string[]

        Description

        Member's roles

      • Optional timeout?: string

        Description

        Timestamp this member is timed out until

    Returns Member

  • Returns an iterable of key, value pairs for every entry in the map.

    Returns IterableIterator<[string, Member]>

  • Runs all of the callbacks for this emitter. (meant to run when an update occurs)

    Parameters

    • Optional updated: Member[]

      The objects that caused this update.

    Returns void

  • Executes a provided function once per each key/value pair in the Map, in insertion order.

    Parameters

    • callbackfn: ((value: Member, key: string, map: Map<string, Member>) => void)
        • (value: Member, key: string, map: Map<string, Member>): void
        • Parameters

          Returns void

    • Optional thisArg: any

    Returns void

  • Returns a specified element from the Map object. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Map.

    Returns

    Returns the element associated with the specified key. If no element is associated with the specified key, undefined is returned.

    Parameters

    • key: string

    Returns Member

  • Returns

    boolean indicating whether an element with the specified key exists or not.

    Parameters

    • key: string

    Returns boolean

  • Returns an iterable of keys in the map

    Returns IterableIterator<string>

  • Returns an iterable of values in the map

    Returns IterableIterator<Member>