Skip to content

Commit

Permalink
docs: Add MessageActivityType (v13) (#8257)
Browse files Browse the repository at this point in the history
  • Loading branch information
aiko-chan-ai committed Jul 9, 2022
1 parent a93f4b1 commit 9cc336c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/structures/Presence.js
Expand Up @@ -10,7 +10,12 @@ const Util = require('../util/Util');
* 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
* @property {MessageActivityType} type Type of activity sent
*/

/**
* @external MessageActivityType
* @see {@link https://discord-api-types.dev/api/discord-api-types-v9/enum/MessageActivityType}
*/

/**
Expand Down
3 changes: 2 additions & 1 deletion typings/index.d.ts
Expand Up @@ -52,6 +52,7 @@ import {
APIUser,
GatewayVoiceServerUpdateDispatchData,
GatewayVoiceStateUpdateDispatchData,
MessageActivityType,
RESTPostAPIApplicationCommandsJSONBody,
Snowflake,
LocalizationMap,
Expand Down Expand Up @@ -5301,7 +5302,7 @@ export interface MessageActionRowOptions<

export interface MessageActivity {
partyId: string;
type: number;
type: MessageActivityType;
}

export interface BaseButtonOptions extends BaseMessageComponentOptions {
Expand Down

0 comments on commit 9cc336c

Please sign in to comment.