docs: document constructors of extendible structures (#3160)

* docs: document constructors of extendible structures

* docs(ClientPresence): document default value for data parameter

Co-Authored-By: SpaceEEC <spaceeec@yahoo.com>

* docs(Presence): document default value for data parameter

Co-Authored-By: SpaceEEC <spaceeec@yahoo.com>

* docs(DMChannel): capitalize DM in the constructor doc
This commit is contained in:
SpaceEEC
2019-04-14 14:50:55 +02:00
committed by GitHub
parent 5d10585af8
commit ca43919642
14 changed files with 58 additions and 1 deletions

View File

@@ -6,6 +6,10 @@ const { ActivityTypes, OPCodes } = require('../util/Constants');
const { TypeError } = require('../errors');
class ClientPresence extends Presence {
/**
* @param {Client} client The instantiating client
* @param {Object} [data={}] The data for the client presence
*/
constructor(client, data = {}) {
super(client, Object.assign(data, { status: 'online', user: { id: null } }));
}