@discordjs/builders 2.0.0-dev.1739059979-af3ab2211 → 2.0.0-dev.1739275514-58a111d6f
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.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2560,18 +2560,18 @@ function embedLength(data) {
|
|
|
2560
2560
|
__name(embedLength, "embedLength");
|
|
2561
2561
|
|
|
2562
2562
|
// src/messages/embed/Assertions.ts
|
|
2563
|
-
var namePredicate3 = import_zod7.z.string().
|
|
2563
|
+
var namePredicate3 = import_zod7.z.string().max(256);
|
|
2564
2564
|
var iconURLPredicate = import_zod7.z.string().url().refine(refineURLPredicate(["http:", "https:", "attachment:"]), {
|
|
2565
2565
|
message: "Invalid protocol for icon URL. Must be http:, https:, or attachment:"
|
|
2566
2566
|
});
|
|
2567
2567
|
var URLPredicate = import_zod7.z.string().url().refine(refineURLPredicate(["http:", "https:"]), { message: "Invalid protocol for URL. Must be http: or https:" });
|
|
2568
2568
|
var embedFieldPredicate = import_zod7.z.object({
|
|
2569
2569
|
name: namePredicate3,
|
|
2570
|
-
value: import_zod7.z.string().
|
|
2570
|
+
value: import_zod7.z.string().max(1024),
|
|
2571
2571
|
inline: import_zod7.z.boolean().optional()
|
|
2572
2572
|
});
|
|
2573
2573
|
var embedAuthorPredicate = import_zod7.z.object({
|
|
2574
|
-
name: namePredicate3,
|
|
2574
|
+
name: namePredicate3.min(1),
|
|
2575
2575
|
icon_url: iconURLPredicate.optional(),
|
|
2576
2576
|
url: URLPredicate.optional()
|
|
2577
2577
|
});
|
|
@@ -2580,7 +2580,7 @@ var embedFooterPredicate = import_zod7.z.object({
|
|
|
2580
2580
|
icon_url: iconURLPredicate.optional()
|
|
2581
2581
|
});
|
|
2582
2582
|
var embedPredicate = import_zod7.z.object({
|
|
2583
|
-
title: namePredicate3.optional(),
|
|
2583
|
+
title: namePredicate3.min(1).optional(),
|
|
2584
2584
|
description: import_zod7.z.string().min(1).max(4096).optional(),
|
|
2585
2585
|
url: URLPredicate.optional(),
|
|
2586
2586
|
timestamp: import_zod7.z.string().optional(),
|
|
@@ -3071,7 +3071,7 @@ var EmbedBuilder = class {
|
|
|
3071
3071
|
};
|
|
3072
3072
|
|
|
3073
3073
|
// src/index.ts
|
|
3074
|
-
var version = "2.0.0-dev.
|
|
3074
|
+
var version = "2.0.0-dev.1739275514-58a111d6f";
|
|
3075
3075
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3076
3076
|
0 && (module.exports = {
|
|
3077
3077
|
ActionRowBuilder,
|