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:
Field | Type | Description |
---|---|---|
ApplicationId | string | discord rpc application id |
State | string | discord rpc state |
Details | string | discord rpc details |
StartTimestamp | number | start timestamp of the discord rpc (UNIX time in seconds) |
EndTimestamp | number | end timestamp of the discord rpc (UNIX time in seconds) |
LargeImageKey | string | discord rpc large image key |
LargeImageText | string | discord rpc large image text |
SmallImageKey | string | discord rpc small image key |
SmallImageText | string | discord rpc small image text |
PartyId | string | discord rpc party id |
PartySize | number | discord rpc party size |
PartyMax | number | discord rpc party max |
MatchSecret | string | discord rpc match secret |
JoinSecret | string | discord rpc join secret |
SpectateSecret | string | discord rpc spectate secret |
Instance | number | discord rpc instance |
syn.rpc.remove
void syn.rpc.remove()
removes discord rpc if was set