stoatbot.js
    Preparing search index...

    Class ServerMemberManager

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    cache: Map<string, ServerMember> = ...

    Insertion ordered cache of items this manager holds.

    defaultMaxSize: number = -1

    Shared default max size for all managers (can be changed globally).

    Methods

    • Parameters

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

            Unique member id

            • server: string

              Server Id

            • user: string

              User Id

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

            Avatar attachment

          • joined_at: string

            Time at which this user joined the server

          • Optionalnickname?: string | null

            Member's nickname

          • Optionalroles?: string[]

            Member's roles

          • Optionaltimeout?: string | null

            Timestamp this member is timed out until

      Returns ServerMember | null

    • Parameters

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

            Unique member id

            • server: string

              Server Id

            • user: string

              User Id

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

            Avatar attachment

          • joined_at: string

            Time at which this user joined the server

          • Optionalnickname?: string | null

            Member's nickname

          • Optionalroles?: string[]

            Member's roles

          • Optionaltimeout?: string | null

            Timestamp this member is timed out until

      Returns ServerMember | null