discord.js 15.0.0-dev.1758758504-2d740d527 → 15.0.0-dev.1758931308-9201243f3

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.1758758504-2d740d527",
4
+ "version": "15.0.0-dev.1758931308-9201243f3",
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",
@@ -61,12 +61,12 @@
61
61
  "magic-bytes.js": "^1.12.1",
62
62
  "tslib": "^2.8.1",
63
63
  "undici": "7.11.0",
64
- "@discordjs/builders": "^2.0.0-dev.1758758504-2d740d527",
65
- "@discordjs/collection": "^3.0.0-dev.1758758504-2d740d527",
66
- "@discordjs/formatters": "^1.0.0-dev.1758758504-2d740d527",
67
- "@discordjs/util": "^2.0.0-dev.1758758504-2d740d527",
68
- "@discordjs/rest": "^3.0.0-dev.1758758504-2d740d527",
69
- "@discordjs/ws": "^3.0.0-dev.1758758504-2d740d527"
64
+ "@discordjs/builders": "^2.0.0-dev.1758931308-9201243f3",
65
+ "@discordjs/collection": "^3.0.0-dev.1758931308-9201243f3",
66
+ "@discordjs/formatters": "^1.0.0-dev.1758931308-9201243f3",
67
+ "@discordjs/rest": "^3.0.0-dev.1758931308-9201243f3",
68
+ "@discordjs/ws": "^3.0.0-dev.1758931308-9201243f3",
69
+ "@discordjs/util": "^2.0.0-dev.1758931308-9201243f3"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@favware/cliff-jumper": "^4.1.0",
@@ -82,9 +82,9 @@
82
82
  "tsd": "^0.33.0",
83
83
  "turbo": "^2.5.6",
84
84
  "typescript": "~5.9.2",
85
- "@discordjs/docgen": "^0.12.1",
86
85
  "@discordjs/api-extractor": "^7.52.7",
87
- "@discordjs/scripts": "^0.1.0"
86
+ "@discordjs/scripts": "^0.1.0",
87
+ "@discordjs/docgen": "^0.12.1"
88
88
  },
89
89
  "engines": {
90
90
  "node": ">=22.12.0"
@@ -104,11 +104,10 @@ class ModalComponentResolver {
104
104
  * Gets the value of a text input component
105
105
  *
106
106
  * @param {string} customId The custom id of the text input component
107
- * @param {?boolean} required Whether to throw an error if the component value is not found or empty
108
107
  * @returns {?string}
109
108
  */
110
- getTextInputValue(customId, required = false) {
111
- return this._getTypedComponent(customId, [ComponentType.TextInput], ['value'], required).value ?? null;
109
+ getTextInputValue(customId) {
110
+ return this._getTypedComponent(customId, [ComponentType.TextInput]).value;
112
111
  }
113
112
 
114
113
  /**
@@ -148,9 +148,9 @@ class ModalSubmitInteraction extends BaseInteraction {
148
148
  };
149
149
 
150
150
  // Text display components do not have custom ids.
151
- if (rawComponent.custom_id) data.customId = rawComponent.custom_id;
151
+ if ('custom_id' in rawComponent) data.customId = rawComponent.custom_id;
152
152
 
153
- if (rawComponent.value) data.value = rawComponent.value;
153
+ if ('value' in rawComponent) data.value = rawComponent.value;
154
154
 
155
155
  if (rawComponent.values) {
156
156
  data.values = rawComponent.values;
@@ -235,6 +235,11 @@
235
235
  * @see {@link https://discord-api-types.dev/api/discord-api-types-v10/interface/APISelectMenuOption}
236
236
  */
237
237
 
238
+ /**
239
+ * @external APISelectMenuDefaultValue
240
+ * @see {@link https://discord-api-types.dev/api/discord-api-types-v10/interface/APISelectMenuDefaultValue}
241
+ */
242
+
238
243
  /**
239
244
  * @external APISectionComponent
240
245
  * @see {@link https://discord-api-types.dev/api/discord-api-types-v10/interface/APISectionComponent}
@@ -2609,8 +2609,7 @@ export class ModalComponentResolver<Cached extends CacheType = CacheType> {
2609
2609
  properties: string,
2610
2610
  required: boolean,
2611
2611
  ): ModalData;
2612
- public getTextInputValue(customId: string, required: true): string;
2613
- public getTextInputValue(customId: string, required?: boolean): string | null;
2612
+ public getTextInputValue(customId: string): string;
2614
2613
  public getStringSelectValues(customId: string): readonly string[];
2615
2614
  public getSelectedUsers(customId: string, required: true): ReadonlyCollection<Snowflake, User>;
2616
2615
  public getSelectedUsers(customId: string, required?: boolean): ReadonlyCollection<Snowflake, User> | null;
@@ -2609,8 +2609,7 @@ export class ModalComponentResolver<Cached extends CacheType = CacheType> {
2609
2609
  properties: string,
2610
2610
  required: boolean,
2611
2611
  ): ModalData;
2612
- public getTextInputValue(customId: string, required: true): string;
2613
- public getTextInputValue(customId: string, required?: boolean): string | null;
2612
+ public getTextInputValue(customId: string): string;
2614
2613
  public getStringSelectValues(customId: string): readonly string[];
2615
2614
  public getSelectedUsers(customId: string, required: true): ReadonlyCollection<Snowflake, User>;
2616
2615
  public getSelectedUsers(customId: string, required?: boolean): ReadonlyCollection<Snowflake, User> | null;