discord.js 15.0.0-dev.1745194446-8f35dfd03 → 15.0.0-dev.1745453588-abc5d99ce

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "discord.js",
4
- "version": "15.0.0-dev.1745194446-8f35dfd03",
4
+ "version": "15.0.0-dev.1745453588-abc5d99ce",
5
5
  "description": "A powerful library for interacting with the Discord API",
6
6
  "main": "./src/index.js",
7
7
  "types": "./typings/index.d.ts",
@@ -54,15 +54,15 @@
54
54
  "dependencies": {
55
55
  "@sapphire/snowflake": "3.5.5",
56
56
  "@vladfrangu/async_event_emitter": "^2.4.6",
57
- "discord-api-types": "^0.37.120",
57
+ "discord-api-types": "^0.38.1",
58
58
  "fast-deep-equal": "3.1.3",
59
59
  "lodash.snakecase": "4.1.1",
60
60
  "tslib": "^2.8.1",
61
61
  "undici": "7.8.0",
62
62
  "@discordjs/collection": "^2.1.1",
63
- "@discordjs/formatters": "^0.5.0",
64
63
  "@discordjs/builders": "^1.9.0",
65
64
  "@discordjs/rest": "^2.4.0",
65
+ "@discordjs/formatters": "^0.5.0",
66
66
  "@discordjs/util": "^1.1.1",
67
67
  "@discordjs/ws": "^2.0.0"
68
68
  },
@@ -84,8 +84,8 @@
84
84
  "turbo": "^2.5.0",
85
85
  "typescript": "~5.8.3",
86
86
  "@discordjs/docgen": "^0.12.1",
87
- "@discordjs/scripts": "^0.1.0",
88
- "@discordjs/api-extractor": "^7.38.1"
87
+ "@discordjs/api-extractor": "^7.38.1",
88
+ "@discordjs/scripts": "^0.1.0"
89
89
  },
90
90
  "engines": {
91
91
  "node": ">=22.12.0"
@@ -68,13 +68,13 @@ import {
68
68
  AuditLogEvent,
69
69
  APIMessageComponentEmoji,
70
70
  EmbedType,
71
- APIActionRowComponentTypes,
71
+ APIComponentInActionRow,
72
72
  APIModalInteractionResponseCallbackData,
73
73
  APIModalSubmitInteraction,
74
- APIMessageActionRowComponent,
74
+ APIComponentInMessageActionRow,
75
75
  TextInputStyle,
76
76
  APITextInputComponent,
77
- APIModalActionRowComponent,
77
+ APIComponentInModalActionRow,
78
78
  APIModalComponent,
79
79
  APISelectMenuOption,
80
80
  APIEmbedField,
@@ -258,7 +258,7 @@ export interface BaseComponentData {
258
258
  }
259
259
 
260
260
  export type MessageActionRowComponentData =
261
- | JSONEncodable<APIMessageActionRowComponent>
261
+ | JSONEncodable<APIComponentInMessageActionRow>
262
262
  | ButtonComponentData
263
263
  | StringSelectMenuComponentData
264
264
  | UserSelectMenuComponentData
@@ -266,13 +266,13 @@ export type MessageActionRowComponentData =
266
266
  | MentionableSelectMenuComponentData
267
267
  | ChannelSelectMenuComponentData;
268
268
 
269
- export type ModalActionRowComponentData = JSONEncodable<APIModalActionRowComponent> | TextInputComponentData;
269
+ export type ModalActionRowComponentData = JSONEncodable<APIComponentInModalActionRow> | TextInputComponentData;
270
270
 
271
271
  export type ActionRowComponentData = MessageActionRowComponentData | ModalActionRowComponentData;
272
272
 
273
273
  export type ActionRowComponent = MessageActionRowComponent | ModalActionRowComponent;
274
274
 
275
- export interface ActionRowData<ComponentType extends JSONEncodable<APIActionRowComponentTypes> | ActionRowComponentData>
275
+ export interface ActionRowData<ComponentType extends JSONEncodable<APIComponentInActionRow> | ActionRowComponentData>
276
276
  extends BaseComponentData {
277
277
  components: readonly ComponentType[];
278
278
  }
@@ -287,9 +287,9 @@ export type MessageActionRowComponent =
287
287
  export type ModalActionRowComponent = TextInputComponent;
288
288
 
289
289
  export class ActionRow<ComponentType extends MessageActionRowComponent | ModalActionRowComponent> extends Component<
290
- APIActionRowComponent<APIMessageActionRowComponent | APIModalActionRowComponent>
290
+ APIActionRowComponent<APIComponentInMessageActionRow | APIComponentInModalActionRow>
291
291
  > {
292
- private constructor(data: APIActionRowComponent<APIMessageActionRowComponent | APIModalActionRowComponent>);
292
+ private constructor(data: APIActionRowComponent<APIComponentInMessageActionRow | APIComponentInModalActionRow>);
293
293
  public readonly components: ComponentType[];
294
294
  public toJSON(): APIActionRowComponent<ReturnType<ComponentType['toJSON']>>;
295
295
  }
@@ -697,7 +697,7 @@ export class ButtonInteraction<Cached extends CacheType = CacheType> extends Mes
697
697
  export type AnyComponent =
698
698
  | APIMessageComponent
699
699
  | APIModalComponent
700
- | APIActionRowComponent<APIMessageActionRowComponent | APIModalActionRowComponent>;
700
+ | APIActionRowComponent<APIComponentInMessageActionRow | APIComponentInModalActionRow>;
701
701
 
702
702
  export class Component<RawComponentData extends AnyComponent = AnyComponent> {
703
703
  public readonly data: Readonly<RawComponentData>;
@@ -2150,9 +2150,9 @@ export class MessageComponentInteraction<Cached extends CacheType = CacheType> e
2150
2150
  public get component(): CacheTypeReducer<
2151
2151
  Cached,
2152
2152
  MessageActionRowComponent,
2153
- APIMessageActionRowComponent,
2154
- MessageActionRowComponent | APIMessageActionRowComponent,
2155
- MessageActionRowComponent | APIMessageActionRowComponent
2153
+ APIComponentInMessageActionRow,
2154
+ MessageActionRowComponent | APIComponentInMessageActionRow,
2155
+ MessageActionRowComponent | APIComponentInMessageActionRow
2156
2156
  >;
2157
2157
  public componentType: MessageComponentType;
2158
2158
  public customId: string;
@@ -2354,7 +2354,7 @@ export interface ModalComponentData {
2354
2354
  customId: string;
2355
2355
  title: string;
2356
2356
  components: readonly (
2357
- | JSONEncodable<APIActionRowComponent<APIModalActionRowComponent>>
2357
+ | JSONEncodable<APIActionRowComponent<APIComponentInModalActionRow>>
2358
2358
  | ActionRowData<ModalActionRowComponentData>
2359
2359
  )[];
2360
2360
  }
@@ -6231,9 +6231,9 @@ export interface BaseMessageOptions {
6231
6231
  | AttachmentPayload
6232
6232
  )[];
6233
6233
  components?: readonly (
6234
- | JSONEncodable<APIActionRowComponent<APIActionRowComponentTypes>>
6234
+ | JSONEncodable<APIActionRowComponent<APIComponentInActionRow>>
6235
6235
  | ActionRowData<MessageActionRowComponentData | MessageActionRowComponentBuilder>
6236
- | APIActionRowComponent<APIActionRowComponentTypes>
6236
+ | APIActionRowComponent<APIComponentInActionRow>
6237
6237
  )[];
6238
6238
  }
6239
6239
 
@@ -68,13 +68,13 @@ import {
68
68
  AuditLogEvent,
69
69
  APIMessageComponentEmoji,
70
70
  EmbedType,
71
- APIActionRowComponentTypes,
71
+ APIComponentInActionRow,
72
72
  APIModalInteractionResponseCallbackData,
73
73
  APIModalSubmitInteraction,
74
- APIMessageActionRowComponent,
74
+ APIComponentInMessageActionRow,
75
75
  TextInputStyle,
76
76
  APITextInputComponent,
77
- APIModalActionRowComponent,
77
+ APIComponentInModalActionRow,
78
78
  APIModalComponent,
79
79
  APISelectMenuOption,
80
80
  APIEmbedField,
@@ -258,7 +258,7 @@ export interface BaseComponentData {
258
258
  }
259
259
 
260
260
  export type MessageActionRowComponentData =
261
- | JSONEncodable<APIMessageActionRowComponent>
261
+ | JSONEncodable<APIComponentInMessageActionRow>
262
262
  | ButtonComponentData
263
263
  | StringSelectMenuComponentData
264
264
  | UserSelectMenuComponentData
@@ -266,13 +266,13 @@ export type MessageActionRowComponentData =
266
266
  | MentionableSelectMenuComponentData
267
267
  | ChannelSelectMenuComponentData;
268
268
 
269
- export type ModalActionRowComponentData = JSONEncodable<APIModalActionRowComponent> | TextInputComponentData;
269
+ export type ModalActionRowComponentData = JSONEncodable<APIComponentInModalActionRow> | TextInputComponentData;
270
270
 
271
271
  export type ActionRowComponentData = MessageActionRowComponentData | ModalActionRowComponentData;
272
272
 
273
273
  export type ActionRowComponent = MessageActionRowComponent | ModalActionRowComponent;
274
274
 
275
- export interface ActionRowData<ComponentType extends JSONEncodable<APIActionRowComponentTypes> | ActionRowComponentData>
275
+ export interface ActionRowData<ComponentType extends JSONEncodable<APIComponentInActionRow> | ActionRowComponentData>
276
276
  extends BaseComponentData {
277
277
  components: readonly ComponentType[];
278
278
  }
@@ -287,9 +287,9 @@ export type MessageActionRowComponent =
287
287
  export type ModalActionRowComponent = TextInputComponent;
288
288
 
289
289
  export class ActionRow<ComponentType extends MessageActionRowComponent | ModalActionRowComponent> extends Component<
290
- APIActionRowComponent<APIMessageActionRowComponent | APIModalActionRowComponent>
290
+ APIActionRowComponent<APIComponentInMessageActionRow | APIComponentInModalActionRow>
291
291
  > {
292
- private constructor(data: APIActionRowComponent<APIMessageActionRowComponent | APIModalActionRowComponent>);
292
+ private constructor(data: APIActionRowComponent<APIComponentInMessageActionRow | APIComponentInModalActionRow>);
293
293
  public readonly components: ComponentType[];
294
294
  public toJSON(): APIActionRowComponent<ReturnType<ComponentType['toJSON']>>;
295
295
  }
@@ -697,7 +697,7 @@ export class ButtonInteraction<Cached extends CacheType = CacheType> extends Mes
697
697
  export type AnyComponent =
698
698
  | APIMessageComponent
699
699
  | APIModalComponent
700
- | APIActionRowComponent<APIMessageActionRowComponent | APIModalActionRowComponent>;
700
+ | APIActionRowComponent<APIComponentInMessageActionRow | APIComponentInModalActionRow>;
701
701
 
702
702
  export class Component<RawComponentData extends AnyComponent = AnyComponent> {
703
703
  public readonly data: Readonly<RawComponentData>;
@@ -2150,9 +2150,9 @@ export class MessageComponentInteraction<Cached extends CacheType = CacheType> e
2150
2150
  public get component(): CacheTypeReducer<
2151
2151
  Cached,
2152
2152
  MessageActionRowComponent,
2153
- APIMessageActionRowComponent,
2154
- MessageActionRowComponent | APIMessageActionRowComponent,
2155
- MessageActionRowComponent | APIMessageActionRowComponent
2153
+ APIComponentInMessageActionRow,
2154
+ MessageActionRowComponent | APIComponentInMessageActionRow,
2155
+ MessageActionRowComponent | APIComponentInMessageActionRow
2156
2156
  >;
2157
2157
  public componentType: MessageComponentType;
2158
2158
  public customId: string;
@@ -2354,7 +2354,7 @@ export interface ModalComponentData {
2354
2354
  customId: string;
2355
2355
  title: string;
2356
2356
  components: readonly (
2357
- | JSONEncodable<APIActionRowComponent<APIModalActionRowComponent>>
2357
+ | JSONEncodable<APIActionRowComponent<APIComponentInModalActionRow>>
2358
2358
  | ActionRowData<ModalActionRowComponentData>
2359
2359
  )[];
2360
2360
  }
@@ -6231,9 +6231,9 @@ export interface BaseMessageOptions {
6231
6231
  | AttachmentPayload
6232
6232
  )[];
6233
6233
  components?: readonly (
6234
- | JSONEncodable<APIActionRowComponent<APIActionRowComponentTypes>>
6234
+ | JSONEncodable<APIActionRowComponent<APIComponentInActionRow>>
6235
6235
  | ActionRowData<MessageActionRowComponentData | MessageActionRowComponentBuilder>
6236
- | APIActionRowComponent<APIActionRowComponentTypes>
6236
+ | APIActionRowComponent<APIComponentInActionRow>
6237
6237
  )[];
6238
6238
  }
6239
6239