Skip to content
alex-101 edited this page Jan 8, 2021 · 10 revisions

Represents a Discord user's presence data, either plain game or streaming presence or a rich presence. Most if not all properties may be nil.

Instances of this class should not be constructed by users.

Properties

Name Type Description
applicationId string/nil The application id controlling this Rich Presence activity.
details string/nil string for the Rich Presence details section.
emojiHash string/nil The discord hash for the emoji used in this presence if one is set. This will be the raw string for a standard emoji.
emojiId string/nil The ID of the emoji used in this presence if one is set and if it is a custom emoji.
emojiName string/nil The name of the emoji used in this presence if one is set and if it has a custom emoji. This will be the raw string for a standard emoji.
emojiURL string/nil string The URL that can be used to view a full version of the emoji used in this activity if one is set and if it is a custom emoji.
imageLarge string/nil URL for the Rich Presence large image.
imageSmall string/nil URL for the Rich Presence small image.
name string/nil The game that the user is currently playing.
partyId string/nil Party id for this Rich Presence.
partyMax number/nil Max size for the Rich Presence party.
partySize number/nil Size of the Rich Presence party.
start number/nil The Unix timestamp for when this Rich Presence activity was started.
state string/nil string for the Rich Presence state section.
stop number/nil The Unix timestamp for when this Rich Presence activity was stopped.
textLarge string/nil string for the Rich Presence large image text.
textSmall string/nil string for the Rich Presence small image text.
type number/nil The type of user's game status. See the activityType enumeration for a human-readable representation.
url string/nil The URL that is set for a user's streaming game status.
Clone this wiki locally