Skip to main content

DiscordRichPresence

Data structure

INTLDiscordRichPresence

参数类型说明备注
GameNamestringthe game name registered on Discord developersrequired
StatestringThe state of the party for this activity.
If specified, must be a string between 2 and 128 characters.
optional
Detailsstringwhat the user is currently doing.
If specified, must be a string between 2 and 128 characters.
optional
LargeTextstringLarge Text used to customize how displayed in the Discord client.
If specified, must be a string between 2 and 128 characters.
optional
LargeImagestringLarge Images used to customize how displayed in the Discord client.
If specified, must be a string between 1 and 256 characters.
optional
SmallTextstringSmall Text used to customize how displayed in the Discord client.
If specified, must be a string between 2 and 128 characters.
optional
SmallImagestringSmall Images used to customize how displayed in the Discord client.
If specified, must be a string between 1 and 256 characters.
optional
StartTimelong'StartTime' represents how long the user has been playing this activity in milliseconds since Unix epoch.
'StartTime' and 'EndTime' are either none or both set.
If neither is set, the game will start by default at 00:00:00.
If both are set, 'StartTime' will be used.
optional
EndTimelong'EndTime' indicates how long until the activity ends in milliseconds since Unix epoch.optional
PartyMaxSizeintThe maximum number of people that can be in the party, must be at least 0.optional
SupportedPlatformsintRepresents the type of platforms that an activity invite can be accepted on.
PC = 1, IOS = 8, Android = 16
You could use values like 1 | 8 | 16 to support multiple platforms.
optional
ExtraJsonstringextra null string params in a json formatoptional

An example of how a player's game rich presence is displayed in the Discord client can be found in the following image: picture :richpresence