mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
docs: Add TypeDef for MessageActivity (#2321)
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user