syn.rpc

Documentation of Synapse Z syn.rpc library

syn.rpc.set

void syn.rpc.set(table: options)

sets discord rpc to the specified options with following fields:

FieldTypeDescription
ApplicationIdstringdiscord rpc application id
Statestringdiscord rpc state
Detailsstringdiscord rpc details
StartTimestampnumberstart timestamp of the discord rpc (UNIX time in seconds)
EndTimestampnumberend timestamp of the discord rpc (UNIX time in seconds)
LargeImageKeystringdiscord rpc large image key
LargeImageTextstringdiscord rpc large image text
SmallImageKeystringdiscord rpc small image key
SmallImageTextstringdiscord rpc small image text
PartyIdstringdiscord rpc party id
PartySizenumberdiscord rpc party size
PartyMaxnumberdiscord rpc party max
MatchSecretstringdiscord rpc match secret
JoinSecretstringdiscord rpc join secret
SpectateSecretstringdiscord rpc spectate secret
Instancenumberdiscord rpc instance

syn.rpc.remove

void syn.rpc.remove()

removes discord rpc if was set