@discordjs/builders 2.0.0-dev.1741219959-e273afbb9 → 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 +14 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -872,7 +872,7 @@ var StringSelectMenuBuilder = class extends BaseSelectMenuBuilder {
|
|
|
872
872
|
*
|
|
873
873
|
* @remarks
|
|
874
874
|
* This method behaves similarly
|
|
875
|
-
* to {@link https://developer.mozilla.org/
|
|
875
|
+
* to {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/slice | Array.prototype.splice()}.
|
|
876
876
|
* It's useful for modifying and adjusting the order of existing options.
|
|
877
877
|
* @example
|
|
878
878
|
* Remove the first option:
|
|
@@ -1387,7 +1387,7 @@ var ActionRowBuilder = class extends ComponentBuilder {
|
|
|
1387
1387
|
*
|
|
1388
1388
|
* @remarks
|
|
1389
1389
|
* This method behaves similarly
|
|
1390
|
-
* to {@link https://developer.mozilla.org/
|
|
1390
|
+
* to {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/splice | Array.prototype.splice()}.
|
|
1391
1391
|
*
|
|
1392
1392
|
* It's useful for modifying and adjusting order of the already-existing components of an action row.
|
|
1393
1393
|
* @example
|
|
@@ -2042,7 +2042,7 @@ var SharedChatInputCommandOptions = class {
|
|
|
2042
2042
|
*
|
|
2043
2043
|
* @remarks
|
|
2044
2044
|
* This method behaves similarly
|
|
2045
|
-
* to {@link https://developer.mozilla.org/
|
|
2045
|
+
* to {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/splice | Array.prototype.splice()}.
|
|
2046
2046
|
*
|
|
2047
2047
|
* It's useful for modifying and adjusting order of the already-existing options for this command.
|
|
2048
2048
|
* @example
|
|
@@ -2412,7 +2412,7 @@ var ModalBuilder = class {
|
|
|
2412
2412
|
*
|
|
2413
2413
|
* @remarks
|
|
2414
2414
|
* This method behaves similarly
|
|
2415
|
-
* to {@link https://developer.mozilla.org/
|
|
2415
|
+
* to {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/splice | Array.prototype.splice()}.
|
|
2416
2416
|
* The maximum amount of action rows that can be added is 5.
|
|
2417
2417
|
*
|
|
2418
2418
|
* It's useful for modifying and adjusting order of the already-existing action rows of a modal.
|
|
@@ -2470,10 +2470,10 @@ __name(embedLength, "embedLength");
|
|
|
2470
2470
|
|
|
2471
2471
|
// src/messages/embed/Assertions.ts
|
|
2472
2472
|
var namePredicate3 = z7.string().max(256);
|
|
2473
|
-
var iconURLPredicate = z7.string().url().refine(refineURLPredicate(["http:", "https:", "attachment:"]), {
|
|
2474
|
-
message: "Invalid protocol for icon URL. Must be http:, https:, or attachment:"
|
|
2475
|
-
});
|
|
2476
2473
|
var URLPredicate = z7.string().url().refine(refineURLPredicate(["http:", "https:"]), { message: "Invalid protocol for URL. Must be http: or https:" });
|
|
2474
|
+
var URLWithAttachmentProtocolPredicate = z7.string().url().refine(refineURLPredicate(["http:", "https:", "attachment:"]), {
|
|
2475
|
+
message: "Invalid protocol for URL. Must be http:, https:, or attachment:"
|
|
2476
|
+
});
|
|
2477
2477
|
var embedFieldPredicate = z7.object({
|
|
2478
2478
|
name: namePredicate3,
|
|
2479
2479
|
value: z7.string().max(1024),
|
|
@@ -2481,12 +2481,12 @@ var embedFieldPredicate = z7.object({
|
|
|
2481
2481
|
});
|
|
2482
2482
|
var embedAuthorPredicate = z7.object({
|
|
2483
2483
|
name: namePredicate3.min(1),
|
|
2484
|
-
icon_url:
|
|
2484
|
+
icon_url: URLWithAttachmentProtocolPredicate.optional(),
|
|
2485
2485
|
url: URLPredicate.optional()
|
|
2486
2486
|
});
|
|
2487
2487
|
var embedFooterPredicate = z7.object({
|
|
2488
2488
|
text: z7.string().min(1).max(2048),
|
|
2489
|
-
icon_url:
|
|
2489
|
+
icon_url: URLWithAttachmentProtocolPredicate.optional()
|
|
2490
2490
|
});
|
|
2491
2491
|
var embedPredicate = z7.object({
|
|
2492
2492
|
title: namePredicate3.min(1).optional(),
|
|
@@ -2495,8 +2495,8 @@ var embedPredicate = z7.object({
|
|
|
2495
2495
|
timestamp: z7.string().optional(),
|
|
2496
2496
|
color: z7.number().int().min(0).max(16777215).optional(),
|
|
2497
2497
|
footer: embedFooterPredicate.optional(),
|
|
2498
|
-
image: z7.object({ url:
|
|
2499
|
-
thumbnail: z7.object({ url:
|
|
2498
|
+
image: z7.object({ url: URLWithAttachmentProtocolPredicate }).optional(),
|
|
2499
|
+
thumbnail: z7.object({ url: URLWithAttachmentProtocolPredicate }).optional(),
|
|
2500
2500
|
author: embedAuthorPredicate.optional(),
|
|
2501
2501
|
fields: z7.array(embedFieldPredicate).max(25).optional()
|
|
2502
2502
|
}).refine(
|
|
@@ -2753,7 +2753,7 @@ var EmbedBuilder = class {
|
|
|
2753
2753
|
*
|
|
2754
2754
|
* @remarks
|
|
2755
2755
|
* This method behaves similarly
|
|
2756
|
-
* to {@link https://developer.mozilla.org/
|
|
2756
|
+
* to {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/splice | Array.prototype.splice()}.
|
|
2757
2757
|
* The maximum amount of fields that can be added is 25.
|
|
2758
2758
|
*
|
|
2759
2759
|
* It's useful for modifying and adjusting order of the already-existing fields of an embed.
|
|
@@ -3189,7 +3189,7 @@ var PollBuilder = class {
|
|
|
3189
3189
|
*
|
|
3190
3190
|
* @remarks
|
|
3191
3191
|
* This method behaves similarly
|
|
3192
|
-
* to {@link https://developer.mozilla.org/
|
|
3192
|
+
* to {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/splice | Array.prototype.splice()}.
|
|
3193
3193
|
* The maximum amount of answers that can be added is 10.
|
|
3194
3194
|
*
|
|
3195
3195
|
* It's useful for modifying and adjusting order of the already-existing answers of a poll.
|
|
@@ -3318,7 +3318,7 @@ var PollBuilder = class {
|
|
|
3318
3318
|
};
|
|
3319
3319
|
|
|
3320
3320
|
// src/index.ts
|
|
3321
|
-
var version = "2.0.0-dev.
|
|
3321
|
+
var version = "2.0.0-dev.1741392619-ab6a69401";
|
|
3322
3322
|
export {
|
|
3323
3323
|
ActionRowBuilder,
|
|
3324
3324
|
ApplicationCommandNumericOptionMinMaxValueMixin,
|