Class ServerBan

Server Ban

Constructors

Properties

Accessors

Methods

Constructors

  • Construct Server Ban

    Parameters

    • client: Client

      Client

    • data: { _id: { server: string; user: string }; reason?: null | string }

      Data

      • _id: { server: string; user: string }

        Unique member id

        • server: string

          Server Id

        • user: string

          User Id

      • Optionalreason?: null | string

        Reason for ban creation

    • Optionaluser: {
          _id: 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;
              };
          discriminator: string;
          username: string;
      }
      • _id: string

        Id of the banned user

      • 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 of the banned user

      • discriminator: string

        Discriminator of the banned user

      • username: string

        Username of the banned user

    Returns ServerBan

Properties

client: Client
id: { server: string; user: string }

Type declaration

  • server: string

    Server Id

  • user: string

    User Id

reason?: string
user?: BannedUser

Accessors

Methods