File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,12 @@ const Util = require('../util/Util');
10
10
* Activity sent in a message.
11
11
* @typedef {Object } MessageActivity
12
12
* @property {string } [partyId] Id of the party represented in activity
13
- * @property {number } [type] Type of activity sent
13
+ * @property {MessageActivityType } type Type of activity sent
14
+ */
15
+
16
+ /**
17
+ * @external MessageActivityType
18
+ * @see {@link https://discord-api-types.dev/api/discord-api-types-v9/enum/MessageActivityType }
14
19
*/
15
20
16
21
/**
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ import {
52
52
APIUser ,
53
53
GatewayVoiceServerUpdateDispatchData ,
54
54
GatewayVoiceStateUpdateDispatchData ,
55
+ MessageActivityType ,
55
56
RESTPostAPIApplicationCommandsJSONBody ,
56
57
Snowflake ,
57
58
LocalizationMap ,
@@ -5301,7 +5302,7 @@ export interface MessageActionRowOptions<
5301
5302
5302
5303
export interface MessageActivity {
5303
5304
partyId : string ;
5304
- type : number ;
5305
+ type : MessageActivityType ;
5305
5306
}
5306
5307
5307
5308
export interface BaseButtonOptions extends BaseMessageComponentOptions {
You can’t perform that action at this time.
0 commit comments