library: rpc: fix SET_ACTIVITY response type

Had a bad response type, did not affect usage with arRPC, however did not work with proper Discord RPC.

Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
This commit is contained in:
Ophestra Umiker 2024-06-30 02:51:40 +09:00
parent 7951106bee
commit f0e6395a3e
Signed by: cat
SSH Key Fingerprint: SHA256:gQ67O0enBZ7UdZypgtspB2FDM1g3GVw8nX0XSdcFw8Q
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ func (d *Client) SetActivity(act *Activity) (string, error) {
nonce := uuid.New().String()
_, _, err := validateRaw[Response[[]byte]](Heartbeat, "", "SET_ACTIVITY", nonce)(
_, _, err := validateRaw[Response[any]](Heartbeat, "", "SET_ACTIVITY", nonce)(
d, Heartbeat, Command[activityArgs]{
Arguments: activityArgs{
PID: os.Getpid(),