Skip to content
SinisterRectus edited this page Nov 19, 2023 · 10 revisions

Represents a Discord user's presence data, either an application 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 name of the activity in which the user is currently engaged.
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 user's activity type. See the activityType enumeration for a human-readable representation.
url string/nil The URL for a user's streaming activity.

Methods

__hash()

Returns Activity.parent:__hash()

Returns: string


Clone this wiki locally