Closed ghost closed 3 years ago
The type
field in Activity
is ignored by Discord by design.
There is sadly no way to change the prefix with the Discord Game SDK.
From the JavaDoc:
Only for event handling. Discord will ignore this field.
From Discord's 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 an ActivityType sent, it will be discarded and will not change anything in the client.
So I followed the ActivityExample.java and added
activity.setType(ActivityType.LISTENING);
oractivity.setType(ActivityType.CUSTOM);
and noticed the displaying prefix wasn't changing and kept saying "Playing XYZ Game". Is this a Bug, unimplemented feature or am I doing something incorrectly?