diff --git a/src/structures/Presence.js b/src/structures/Presence.js index afa321264..e356df767 100644 --- a/src/structures/Presence.js +++ b/src/structures/Presence.js @@ -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} */ /** diff --git a/typings/index.d.ts b/typings/index.d.ts index ad64432cf..2e4442260 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -52,6 +52,7 @@ import { APIUser, GatewayVoiceServerUpdateDispatchData, GatewayVoiceStateUpdateDispatchData, + MessageActivityType, RESTPostAPIApplicationCommandsJSONBody, Snowflake, LocalizationMap, @@ -5301,7 +5302,7 @@ export interface MessageActionRowOptions< export interface MessageActivity { partyId: string; - type: number; + type: MessageActivityType; } export interface BaseButtonOptions extends BaseMessageComponentOptions {