feature(ClientUser): deprecate ClientUser#setGame in favour of ClientUser#setActivity (#2127)

* feature(ClientUser): backported ClientUser#setPresence

* fix ternary

* deprecation stuff
This commit is contained in:
Isabella
2017-11-29 22:29:37 -06:00
committed by Schuyler Cebulskie
parent e40c3f8cd0
commit cd066849ad
3 changed files with 42 additions and 2 deletions

View File

@@ -350,6 +350,21 @@ exports.Events = {
DEBUG: 'debug',
};
/**
* The type of an activity of a users presence, e.g. `PLAYING`. Here are the available types:
* * PLAYING
* * STREAMING
* * LISTENING
* * WATCHING
* @typedef {string} ActivityType
*/
exports.ActivityTypes = [
'PLAYING',
'STREAMING',
'LISTENING',
'WATCHING',
];
/**
* The type of a websocket message event, e.g. `MESSAGE_CREATE`. Here are the available events:
* * READY