Skip to main content

DiscordRichPresence

Data structure

FINTLRichPresence

参数类型说明备注
gameNameFStringthe game name registered on Discord developersrequired
stateFStringThe state of the party for this activity.
If specified, must be a string between 2 and 128 characters.
optional
detailsFStringwhat the user is currently doing.
If specified, must be a string between 2 and 128 characters.
optional
largeTextFStringLarge Text used to customize how displayed in the Discord client.
If specified, must be a string between 2 and 128 characters.
optional
largeImageFStringLarge Images used to customize how displayed in the Discord client.
If specified, must be a string between 1 and 256 characters.
optional
smallTextFStringSmall Text used to customize how displayed in the Discord client.
If specified, must be a string between 2 and 128 characters.
optional
smallImageFStringSmall Images used to customize how displayed in the Discord client.
If specified, must be a string between 1 and 256 characters.
optional
startTimeint32'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
endTimeint32'EndTime' indicates how long until the activity ends in milliseconds since Unix epoch.optional
partyMaxSizeint32The maximum number of people that can be in the party, must be at least 0.optional
supportedPlatformsint32Represents 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
extraJsonFStringextra 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