Class UserProfile

User Profile Class

Hierarchy

  • UserProfile

Constructors

Properties

Accessors

Constructors

  • Construct Public Bot

    Parameters

    • client: Client

      Client

    • data: {
          background?: 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;
          };
          content?: null | string;
      }

      Data

      • Optional background?: 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;
        }

        Description

        Background visible on user's profile

      • Optional content?: null | string

        Description

        Text content on user's profile

    Returns UserProfile

Properties

banner?: File
content?: string

Accessors

  • get animatedBannerURL(): undefined | string
  • URL to the user's animated banner

    Returns undefined | string

Generated using TypeDoc