mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
docs: Add TypeDef for MessageActivity (#2321)
This commit is contained in:
parent
e0cbf0bb60
commit
43363172c2
2 changed files with 8 additions and 1 deletions
|
|
@ -138,7 +138,7 @@ class Message extends Base {
|
|||
|
||||
/**
|
||||
* Group activity
|
||||
* @type {?Object}
|
||||
* @type {?MessageActivity}
|
||||
*/
|
||||
this.activity = data.activity ? {
|
||||
partyID: data.activity.party_id,
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue