@discordjs/builders 2.0.0-dev.1740874411-d1f56ffb2 → 2.0.0-dev.1741392619-ab6a69401
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/dist/index.d.mts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +15 -15
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -15
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -498,7 +498,7 @@ declare class StringSelectMenuBuilder extends BaseSelectMenuBuilder<APIStringSel
|
|
|
498
498
|
*
|
|
499
499
|
* @remarks
|
|
500
500
|
* This method behaves similarly
|
|
501
|
-
* to {@link https://developer.mozilla.org/
|
|
501
|
+
* to {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/slice | Array.prototype.splice()}.
|
|
502
502
|
* It's useful for modifying and adjusting the order of existing options.
|
|
503
503
|
* @example
|
|
504
504
|
* Remove the first option:
|
|
@@ -910,7 +910,7 @@ declare class ActionRowBuilder extends ComponentBuilder<APIActionRowComponent<AP
|
|
|
910
910
|
*
|
|
911
911
|
* @remarks
|
|
912
912
|
* This method behaves similarly
|
|
913
|
-
* to {@link https://developer.mozilla.org/
|
|
913
|
+
* to {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/splice | Array.prototype.splice()}.
|
|
914
914
|
*
|
|
915
915
|
* It's useful for modifying and adjusting order of the already-existing components of an action row.
|
|
916
916
|
* @example
|
|
@@ -3851,7 +3851,7 @@ declare class SharedChatInputCommandOptions {
|
|
|
3851
3851
|
*
|
|
3852
3852
|
* @remarks
|
|
3853
3853
|
* This method behaves similarly
|
|
3854
|
-
* to {@link https://developer.mozilla.org/
|
|
3854
|
+
* to {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/splice | Array.prototype.splice()}.
|
|
3855
3855
|
*
|
|
3856
3856
|
* It's useful for modifying and adjusting order of the already-existing options for this command.
|
|
3857
3857
|
* @example
|
|
@@ -7548,7 +7548,7 @@ declare class ModalBuilder implements JSONEncodable<APIModalInteractionResponseC
|
|
|
7548
7548
|
*
|
|
7549
7549
|
* @remarks
|
|
7550
7550
|
* This method behaves similarly
|
|
7551
|
-
* to {@link https://developer.mozilla.org/
|
|
7551
|
+
* to {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/splice | Array.prototype.splice()}.
|
|
7552
7552
|
* The maximum amount of action rows that can be added is 5.
|
|
7553
7553
|
*
|
|
7554
7554
|
* It's useful for modifying and adjusting order of the already-existing action rows of a modal.
|
|
@@ -8012,7 +8012,7 @@ declare class EmbedBuilder implements JSONEncodable<APIEmbed> {
|
|
|
8012
8012
|
*
|
|
8013
8013
|
* @remarks
|
|
8014
8014
|
* This method behaves similarly
|
|
8015
|
-
* to {@link https://developer.mozilla.org/
|
|
8015
|
+
* to {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/splice | Array.prototype.splice()}.
|
|
8016
8016
|
* The maximum amount of fields that can be added is 25.
|
|
8017
8017
|
*
|
|
8018
8018
|
* It's useful for modifying and adjusting order of the already-existing fields of an embed.
|
|
@@ -8516,7 +8516,7 @@ declare class PollBuilder implements JSONEncodable<RESTAPIPoll> {
|
|
|
8516
8516
|
*
|
|
8517
8517
|
* @remarks
|
|
8518
8518
|
* This method behaves similarly
|
|
8519
|
-
* to {@link https://developer.mozilla.org/
|
|
8519
|
+
* to {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/splice | Array.prototype.splice()}.
|
|
8520
8520
|
* The maximum amount of answers that can be added is 10.
|
|
8521
8521
|
*
|
|
8522
8522
|
* It's useful for modifying and adjusting order of the already-existing answers of a poll.
|
package/dist/index.d.ts
CHANGED
|
@@ -498,7 +498,7 @@ declare class StringSelectMenuBuilder extends BaseSelectMenuBuilder<APIStringSel
|
|
|
498
498
|
*
|
|
499
499
|
* @remarks
|
|
500
500
|
* This method behaves similarly
|
|
501
|
-
* to {@link https://developer.mozilla.org/
|
|
501
|
+
* to {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/slice | Array.prototype.splice()}.
|
|
502
502
|
* It's useful for modifying and adjusting the order of existing options.
|
|
503
503
|
* @example
|
|
504
504
|
* Remove the first option:
|
|
@@ -910,7 +910,7 @@ declare class ActionRowBuilder extends ComponentBuilder<APIActionRowComponent<AP
|
|
|
910
910
|
*
|
|
911
911
|
* @remarks
|
|
912
912
|
* This method behaves similarly
|
|
913
|
-
* to {@link https://developer.mozilla.org/
|
|
913
|
+
* to {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/splice | Array.prototype.splice()}.
|
|
914
914
|
*
|
|
915
915
|
* It's useful for modifying and adjusting order of the already-existing components of an action row.
|
|
916
916
|
* @example
|
|
@@ -3851,7 +3851,7 @@ declare class SharedChatInputCommandOptions {
|
|
|
3851
3851
|
*
|
|
3852
3852
|
* @remarks
|
|
3853
3853
|
* This method behaves similarly
|
|
3854
|
-
* to {@link https://developer.mozilla.org/
|
|
3854
|
+
* to {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/splice | Array.prototype.splice()}.
|
|
3855
3855
|
*
|
|
3856
3856
|
* It's useful for modifying and adjusting order of the already-existing options for this command.
|
|
3857
3857
|
* @example
|
|
@@ -7548,7 +7548,7 @@ declare class ModalBuilder implements JSONEncodable<APIModalInteractionResponseC
|
|
|
7548
7548
|
*
|
|
7549
7549
|
* @remarks
|
|
7550
7550
|
* This method behaves similarly
|
|
7551
|
-
* to {@link https://developer.mozilla.org/
|
|
7551
|
+
* to {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/splice | Array.prototype.splice()}.
|
|
7552
7552
|
* The maximum amount of action rows that can be added is 5.
|
|
7553
7553
|
*
|
|
7554
7554
|
* It's useful for modifying and adjusting order of the already-existing action rows of a modal.
|
|
@@ -8012,7 +8012,7 @@ declare class EmbedBuilder implements JSONEncodable<APIEmbed> {
|
|
|
8012
8012
|
*
|
|
8013
8013
|
* @remarks
|
|
8014
8014
|
* This method behaves similarly
|
|
8015
|
-
* to {@link https://developer.mozilla.org/
|
|
8015
|
+
* to {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/splice | Array.prototype.splice()}.
|
|
8016
8016
|
* The maximum amount of fields that can be added is 25.
|
|
8017
8017
|
*
|
|
8018
8018
|
* It's useful for modifying and adjusting order of the already-existing fields of an embed.
|
|
@@ -8516,7 +8516,7 @@ declare class PollBuilder implements JSONEncodable<RESTAPIPoll> {
|
|
|
8516
8516
|
*
|
|
8517
8517
|
* @remarks
|
|
8518
8518
|
* This method behaves similarly
|
|
8519
|
-
* to {@link https://developer.mozilla.org/
|
|
8519
|
+
* to {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/splice | Array.prototype.splice()}.
|
|
8520
8520
|
* The maximum amount of answers that can be added is 10.
|
|
8521
8521
|
*
|
|
8522
8522
|
* It's useful for modifying and adjusting order of the already-existing answers of a poll.
|
package/dist/index.js
CHANGED
|
@@ -980,7 +980,7 @@ var StringSelectMenuBuilder = class extends BaseSelectMenuBuilder {
|
|
|
980
980
|
*
|
|
981
981
|
* @remarks
|
|
982
982
|
* This method behaves similarly
|
|
983
|
-
* to {@link https://developer.mozilla.org/
|
|
983
|
+
* to {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/slice | Array.prototype.splice()}.
|
|
984
984
|
* It's useful for modifying and adjusting the order of existing options.
|
|
985
985
|
* @example
|
|
986
986
|
* Remove the first option:
|
|
@@ -1492,7 +1492,7 @@ var ActionRowBuilder = class extends ComponentBuilder {
|
|
|
1492
1492
|
*
|
|
1493
1493
|
* @remarks
|
|
1494
1494
|
* This method behaves similarly
|
|
1495
|
-
* to {@link https://developer.mozilla.org/
|
|
1495
|
+
* to {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/splice | Array.prototype.splice()}.
|
|
1496
1496
|
*
|
|
1497
1497
|
* It's useful for modifying and adjusting order of the already-existing components of an action row.
|
|
1498
1498
|
* @example
|
|
@@ -2143,7 +2143,7 @@ var SharedChatInputCommandOptions = class {
|
|
|
2143
2143
|
*
|
|
2144
2144
|
* @remarks
|
|
2145
2145
|
* This method behaves similarly
|
|
2146
|
-
* to {@link https://developer.mozilla.org/
|
|
2146
|
+
* to {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/splice | Array.prototype.splice()}.
|
|
2147
2147
|
*
|
|
2148
2148
|
* It's useful for modifying and adjusting order of the already-existing options for this command.
|
|
2149
2149
|
* @example
|
|
@@ -2364,7 +2364,7 @@ var ChatInputCommandBuilder = class extends (0, import_ts_mixer8.Mixin)(
|
|
|
2364
2364
|
// src/interactions/commands/contextMenu/Assertions.ts
|
|
2365
2365
|
var import_v1028 = require("discord-api-types/v10");
|
|
2366
2366
|
var import_zod5 = require("zod");
|
|
2367
|
-
var namePredicate2 = import_zod5.z.string().min(1).max(32).regex(/^( *[\p{P}\p{L}\p{N}\p{sc=Devanagari}\p{sc=Thai}]
|
|
2367
|
+
var namePredicate2 = import_zod5.z.string().min(1).max(32).regex(/^(?:(?: *[\p{P}\p{L}\p{N}\p{sc=Devanagari}\p{sc=Thai}\p{Extended_Pictographic}\p{Emoji_Component}]) *)+$/u);
|
|
2368
2368
|
var contextsPredicate = import_zod5.z.array(import_zod5.z.nativeEnum(import_v1028.InteractionContextType));
|
|
2369
2369
|
var integrationTypesPredicate = import_zod5.z.array(import_zod5.z.nativeEnum(import_v1028.ApplicationIntegrationType));
|
|
2370
2370
|
var baseContextMenuCommandPredicate = import_zod5.z.object({
|
|
@@ -2513,7 +2513,7 @@ var ModalBuilder = class {
|
|
|
2513
2513
|
*
|
|
2514
2514
|
* @remarks
|
|
2515
2515
|
* This method behaves similarly
|
|
2516
|
-
* to {@link https://developer.mozilla.org/
|
|
2516
|
+
* to {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/splice | Array.prototype.splice()}.
|
|
2517
2517
|
* The maximum amount of action rows that can be added is 5.
|
|
2518
2518
|
*
|
|
2519
2519
|
* It's useful for modifying and adjusting order of the already-existing action rows of a modal.
|
|
@@ -2571,10 +2571,10 @@ __name(embedLength, "embedLength");
|
|
|
2571
2571
|
|
|
2572
2572
|
// src/messages/embed/Assertions.ts
|
|
2573
2573
|
var namePredicate3 = import_zod7.z.string().max(256);
|
|
2574
|
-
var iconURLPredicate = import_zod7.z.string().url().refine(refineURLPredicate(["http:", "https:", "attachment:"]), {
|
|
2575
|
-
message: "Invalid protocol for icon URL. Must be http:, https:, or attachment:"
|
|
2576
|
-
});
|
|
2577
2574
|
var URLPredicate = import_zod7.z.string().url().refine(refineURLPredicate(["http:", "https:"]), { message: "Invalid protocol for URL. Must be http: or https:" });
|
|
2575
|
+
var URLWithAttachmentProtocolPredicate = import_zod7.z.string().url().refine(refineURLPredicate(["http:", "https:", "attachment:"]), {
|
|
2576
|
+
message: "Invalid protocol for URL. Must be http:, https:, or attachment:"
|
|
2577
|
+
});
|
|
2578
2578
|
var embedFieldPredicate = import_zod7.z.object({
|
|
2579
2579
|
name: namePredicate3,
|
|
2580
2580
|
value: import_zod7.z.string().max(1024),
|
|
@@ -2582,12 +2582,12 @@ var embedFieldPredicate = import_zod7.z.object({
|
|
|
2582
2582
|
});
|
|
2583
2583
|
var embedAuthorPredicate = import_zod7.z.object({
|
|
2584
2584
|
name: namePredicate3.min(1),
|
|
2585
|
-
icon_url:
|
|
2585
|
+
icon_url: URLWithAttachmentProtocolPredicate.optional(),
|
|
2586
2586
|
url: URLPredicate.optional()
|
|
2587
2587
|
});
|
|
2588
2588
|
var embedFooterPredicate = import_zod7.z.object({
|
|
2589
2589
|
text: import_zod7.z.string().min(1).max(2048),
|
|
2590
|
-
icon_url:
|
|
2590
|
+
icon_url: URLWithAttachmentProtocolPredicate.optional()
|
|
2591
2591
|
});
|
|
2592
2592
|
var embedPredicate = import_zod7.z.object({
|
|
2593
2593
|
title: namePredicate3.min(1).optional(),
|
|
@@ -2596,8 +2596,8 @@ var embedPredicate = import_zod7.z.object({
|
|
|
2596
2596
|
timestamp: import_zod7.z.string().optional(),
|
|
2597
2597
|
color: import_zod7.z.number().int().min(0).max(16777215).optional(),
|
|
2598
2598
|
footer: embedFooterPredicate.optional(),
|
|
2599
|
-
image: import_zod7.z.object({ url:
|
|
2600
|
-
thumbnail: import_zod7.z.object({ url:
|
|
2599
|
+
image: import_zod7.z.object({ url: URLWithAttachmentProtocolPredicate }).optional(),
|
|
2600
|
+
thumbnail: import_zod7.z.object({ url: URLWithAttachmentProtocolPredicate }).optional(),
|
|
2601
2601
|
author: embedAuthorPredicate.optional(),
|
|
2602
2602
|
fields: import_zod7.z.array(embedFieldPredicate).max(25).optional()
|
|
2603
2603
|
}).refine(
|
|
@@ -2854,7 +2854,7 @@ var EmbedBuilder = class {
|
|
|
2854
2854
|
*
|
|
2855
2855
|
* @remarks
|
|
2856
2856
|
* This method behaves similarly
|
|
2857
|
-
* to {@link https://developer.mozilla.org/
|
|
2857
|
+
* to {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/splice | Array.prototype.splice()}.
|
|
2858
2858
|
* The maximum amount of fields that can be added is 25.
|
|
2859
2859
|
*
|
|
2860
2860
|
* It's useful for modifying and adjusting order of the already-existing fields of an embed.
|
|
@@ -3290,7 +3290,7 @@ var PollBuilder = class {
|
|
|
3290
3290
|
*
|
|
3291
3291
|
* @remarks
|
|
3292
3292
|
* This method behaves similarly
|
|
3293
|
-
* to {@link https://developer.mozilla.org/
|
|
3293
|
+
* to {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/splice | Array.prototype.splice()}.
|
|
3294
3294
|
* The maximum amount of answers that can be added is 10.
|
|
3295
3295
|
*
|
|
3296
3296
|
* It's useful for modifying and adjusting order of the already-existing answers of a poll.
|
|
@@ -3419,7 +3419,7 @@ var PollBuilder = class {
|
|
|
3419
3419
|
};
|
|
3420
3420
|
|
|
3421
3421
|
// src/index.ts
|
|
3422
|
-
var version = "2.0.0-dev.
|
|
3422
|
+
var version = "2.0.0-dev.1741392619-ab6a69401";
|
|
3423
3423
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3424
3424
|
0 && (module.exports = {
|
|
3425
3425
|
ActionRowBuilder,
|