Activity class

Presence is game or activity which user is playing/user participate. Can be game, eg. Dota 2, VS Code or activity like Listening to song on Spotify.

Properties

activityFlags ActivityFlags
Activity flags ORd together, describes what the payload includes
latefinal
applicationId Snowflake?
Application id for the game
latefinal
assets GameAssets?
Images for the presence and their hover texts
latefinal
buttons Iterable<String>
Activity buttons. List of button labels
latefinal
createdAt DateTime
Timestamp of when the activity was added to the user's session
latefinal
customStatusEmoji ActivityEmoji?
The emoji used for a custom status
latefinal
details String?
What the player is currently doing
latefinal
hashCode int
The hash code for this object.
no setterinherited
instance bool?
Whether or not the activity is an instanced game session
latefinal
name String
The activity name.
latefinal
party ActivityParty?
Information for the current party of the player
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secrets GameSecrets?
Secrets for Rich Presence joining and spectating
latefinal
state String?
The user's current party status
latefinal
timestamps ActivityTimestamps?
Timestamps for start and/or end of the game
latefinal
type ActivityType
The activity type.
latefinal
url String?
The game URL, if provided.
latefinal

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited