Closed CodeByAidan closed 1 year ago
Discord currently does not support specifying the type of the activity. This field is only used for event handlers and will be ignored when setting an activity through the Game SDK.
See JavaDoc for Acitivity#setType(ActivityType)
:
https://github.com/JnCrMx/discord-game-sdk4j/blob/9cfd70a72c4393c292ea5b037426d5f24c6e434f/src/main/java/de/jcm/discordgamesdk/activity/Activity.java#L96
And from the SDK documentation (https://discord.com/developers/docs/game-sdk/activities#data-models-activitytype-enum):
ActivityType
is strictly for the purpose of handling events that you receive from Discord; though the SDK/our API will not reject a payload with anActivityType
sent, it will be discarded and will not change anything in the client.
Description
When running my application with the provided code, the Discord Rich Presence displays "Playing a game" instead of "Listening to ___" 😞 .
Steps to Reproduce
Expected Behavior
The Discord Rich Presence should display "Listening to ___".
Actual Behavior
The Discord Rich Presence shows "Playing a game" instead of "Listening to ___".
Environment
Code