Skip to content

Commit

Permalink
docs(Presence): document client property (#3342)
Browse files Browse the repository at this point in the history
  • Loading branch information
monbrey authored and SpaceEEC committed Jun 12, 2019
1 parent 6cd4c27 commit f82f0af
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/structures/Presence.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ class Presence {
* @param {Object} [data={}] The data for the presence
*/
constructor(client, data = {}) {
/**
* The client that instantiated this
* @name Presence#client
* @type {Client}
* @readonly
*/
Object.defineProperty(this, 'client', { value: client });
/**
* The user ID of this presence
Expand Down

0 comments on commit f82f0af

Please sign in to comment.