From 9cc336c43b0a618bdd74bb4cb7ccde674d43e263 Mon Sep 17 00:00:00 2001 From: Cinnamon <71698422+aiko-chan-ai@users.noreply.github.com> Date: Sun, 10 Jul 2022 00:42:43 +0700 Subject: [PATCH] docs: Add `MessageActivityType` (v13) (#8257) --- src/structures/Presence.js | 7 ++++++- typings/index.d.ts | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/structures/Presence.js b/src/structures/Presence.js index afa3212646eb..e356df7675f0 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 ad64432cf65c..2e4442260219 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 {