steam
Version:
Lets you interface with Steam without running an actual Steam client
25 lines (14 loc) • 1.04 kB
Markdown
This is a handler for sending and receiving Rich Presence messages. Initialize it by passing a SteamClient instance and an AppID to the constructor.
```js
var steamRichPresence = new Steam.SteamRichPresence(steamClient, 570);
```
Uploads rich presence for the AppID this SteamRichPresence instance was initialized with. `body` is a [`CMsgClientRichPresenceUpload`](https://github.com/SteamDatabase/Protobufs/blob/master/steam/steammessages_clientserver_2.proto) object.
Requests rich presence for the AppID this SteamRichPresence instance was initialized with. `body` is a [`CMsgClientRichPresenceRequest`](https://github.com/SteamDatabase/Protobufs/blob/master/steam/steammessages_clientserver_2.proto) object.
* [`CMsgClientRichPresenceInfo`](https://github.com/SteamDatabase/Protobufs/blob/master/steam/steammessages_clientserver_2.proto)
Rich presence info was received for the AppID this SteamRichPresence instance was initialized with.