Skip to main content

Achievement

ClassDataClassSource

Achievement(
name: str,
description: str = "",
icon_url_locked: str | None = None,
percent: float | None = None,
icon_url: str,
is_hidden: bool | None = None
)

The information of an achievement.

Fields​

NameTypeRequired
Description
namestrAchievement display name.
descriptionstrDescription of the achievement. If extra user profiles are not provided, the description of a hidden achievement will not be detected.
icon_url_lockedstr | NoneIcon shown when achievement is locked. Need to be detected from a user profile when the achievement is locked.
percentfloat | NoneThe percent of users who have unlocked this acheivement. Will be None if the value cannot be detected.
icon_urlstrIcon shown when achievement is unlocked.
is_hiddenbool | NoneA flag showing whether the achievement is hidden/spoiler-related. Need to be detected from extra user profiles. If this information is unknown, will be None.