revbot.js
    Preparing search index...

    Class ServerMemberManager

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    cache: Map<string, ServerMember> = ...
    holds: typeof ServerMember = ServerMember
    Holds: any

    Methods

    • Parameters

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

          Unique member id

          • server: string

            Server Id

          • user: string

            User Id

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

          Avatar attachment

        • joined_at: string

          Time at which this user joined the server

        • Optionalnickname?: null | string

          Member's nickname

        • Optionalroles?: string[]

          Member's roles

        • Optionaltimeout?: null | string

          Timestamp this member is timed out until

      Returns ServerMember

    • Parameters

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

            Unique member id

            • server: string

              Server Id

            • user: string

              User Id

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

            Avatar attachment

          • joined_at: string

            Time at which this user joined the server

          • Optionalnickname?: null | string

            Member's nickname

          • Optionalroles?: string[]

            Member's roles

          • Optionaltimeout?: null | string

            Timestamp this member is timed out until

      Returns null | ServerMember

    • Parameters

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

            Unique member id

            • server: string

              Server Id

            • user: string

              User Id

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

            Avatar attachment

          • joined_at: string

            Time at which this user joined the server

          • Optionalnickname?: null | string

            Member's nickname

          • Optionalroles?: string[]

            Member's roles

          • Optionaltimeout?: null | string

            Timestamp this member is timed out until

      Returns null | ServerMember