docs: Add MessageActivityType (v13) (#8257)

This commit is contained in:
Cinnamon
2022-07-10 00:42:43 +07:00
committed by GitHub
parent a93f4b1ba2
commit 9cc336c43b
2 changed files with 8 additions and 2 deletions

View File

@@ -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}
*/
/**

3
typings/index.d.ts vendored
View File

@@ -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 {