EmbarkStudios / discord-sdk

An open implementation of the Discord Game SDK in Rust
Apache License 2.0
150 stars 10 forks source link

Fix relationship_update activity #14

Closed Jake-Shadle closed 3 years ago

Jake-Shadle commented 3 years ago

Gives relationship_update events their own activity type to avoid future differences between the formats, still sharing some types though.

Also fixes an issue where timestamps converted from Discord's i64 representation, which is in milliseconds, but was converted as if it was in seconds. :stuck_out_tongue:

Also fixes an issue where the strings such as state and details in the SET_ACTIVITY command must either be null/missing or else have something other than whitespace.

Resolves: #13