Class Badge

A badge that a user has displayed on their profile. Badges are awarded to the user when they reach certain milestones.

Constructors

  • Parameters

    • data: {
          description: string;
          granted_at: Date;
          image_url: string;
          slug: string;
          title: string;
      }

      The raw badge data from the FakeYou API.

      • description: string
      • granted_at: Date
      • image_url: string
      • slug: string
      • title: string

    Returns Badge

Properties

description: string

The badge description. This is a short description of the badge and how it was earned.

grantedAt: Date
imageUrl: string

The URL to the badge image, at least in theory. This data is available from the API but the URL may be an empty string.

slug: string

The badge slug. This is a unique identifier for the badge.

title: string

The badge title. This is the name of the badge.

Generated using TypeDoc