qeled / discordie

Predictable JavaScript abstractions for Discord API.
https://qeled.github.io/discordie/
BSD 2-Clause "Simplified" License
190 stars 45 forks source link

Automatically set Game.type in setStatus #110

Closed jimrubenstein closed 7 years ago

jimrubenstein commented 7 years ago

When setting/updating the authenticated user's status with the current game, the "Playing ...." info was not being updated in the discord client.

After some digging, looks like you have to specify a "type" on the status update in order to get it to show (This must be 0 or 1, Playing or Streaming, respectively).

This PR updates the docs to give some insight as to the requirement of that parameter, and also updates the updateStatus method to automatically populate the type property with 0 (Playing, from the Constants file) so it works out of the box a little more intutively.

curtisf commented 7 years ago

The type not being set for setting "Playing" has already been fixed in the dev branch. I don't think that the docs have been updated though, might want to point the pr to the dev branch.

jimrubenstein commented 7 years ago

roger that.

On Wed, Oct 18, 2017 at 1:59 PM, Piero notifications@github.com wrote:

The type not being set for setting "Playing" has already been fixed in the dev branch. I don't think that the docs have been updated though, might want to point the pr to the dev branch.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/qeled/discordie/pull/110#issuecomment-337676187, or mute the thread https://github.com/notifications/unsubscribe-auth/AALaj_75Hk0dlbJ1GKIp004TmYP1NQFiks5stjyIgaJpZM4P-FA_ .