docs: Add TypeDef for MessageActivity (#2321)

This commit is contained in:
Snazzah
2018-02-04 13:44:13 -06:00
committed by SpaceEEC
parent e0cbf0bb60
commit 43363172c2
2 changed files with 8 additions and 1 deletions

View File

@@ -138,7 +138,7 @@ class Message extends Base {
/**
* Group activity
* @type {?Object}
* @type {?MessageActivity}
*/
this.activity = data.activity ? {
partyID: data.activity.party_id,

View File

@@ -1,5 +1,12 @@
const { ActivityTypes, ActivityFlags } = require('../util/Constants');
/**
* Activity sent in a message.
* @typedef {Object} MessageActivity
* @property {string} [partyID] Id of the party represented in activity
* @property {number} [type] Type of activity sent
*/
/**
* Represents a user's presence.
*/