mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
document game data #687
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -80,9 +80,17 @@ class User {
|
||||
*/
|
||||
this.status = data.status || this.status || 'offline';
|
||||
|
||||
/**
|
||||
* Represents data about a Game
|
||||
* @property {string} name the name of the game being played.
|
||||
* @property {string} [url] the URL of the stream, if the game is being streamed.
|
||||
* @property {number} [type] if being streamed, this is `1`.
|
||||
* @typedef {object} Game
|
||||
*/
|
||||
|
||||
/**
|
||||
* The game that the user is playing, `null` if they aren't playing a game.
|
||||
* @type {string}
|
||||
* @type {Game}
|
||||
*/
|
||||
this.game = data.game;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user