Package org.javacord.api.entity.activity
Interface Activity
-
- All Superinterfaces:
Formattable,Nameable
public interface Activity extends Nameable
This class represents a activity as it is displayed in Discord.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<Long>getApplicationId()Gets the application id of the game.Optional<ActivityAssets>getAssets()Gets the assets (images for the presence and their hover texts) of the activity.Optional<String>getDetails()Gets details about what's the user is currently doing.Optional<Emoji>getEmoji()Gets the emoji of the custom status.Optional<Instant>getEndTime()Gets the end time of the activity.Optional<ActivityParty>getParty()Gets the current party of the user.Optional<Instant>getStartTime()Gets the start time of the activity.Optional<String>getState()Gets the user's current party status.Optional<String>getStreamingUrl()Gets the streaming url of the activity.ActivityTypegetType()Gets the type of the activity.
-
-
-
Method Detail
-
getType
ActivityType getType()
Gets the type of the activity.- Returns:
- The type of the activity.
-
getStreamingUrl
Optional<String> getStreamingUrl()
Gets the streaming url of the activity.- Returns:
- The streaming url of the activity.
-
getDetails
Optional<String> getDetails()
Gets details about what's the user is currently doing.- Returns:
- Details about what's the user is currently doing.
-
getState
Optional<String> getState()
Gets the user's current party status.- Returns:
- The user's current party status.
-
getParty
Optional<ActivityParty> getParty()
Gets the current party of the user.- Returns:
- The current party of the user.
-
getAssets
Optional<ActivityAssets> getAssets()
Gets the assets (images for the presence and their hover texts) of the activity.- Returns:
- The assets of the activity.
-
getApplicationId
Optional<Long> getApplicationId()
Gets the application id of the game.- Returns:
- The application id of the game.
-
getStartTime
Optional<Instant> getStartTime()
Gets the start time of the activity.- Returns:
- The start time of the activity.
-
getEndTime
Optional<Instant> getEndTime()
Gets the end time of the activity.- Returns:
- The end time of the activity.
-
-