@discordjs/builders 2.0.0-dev.1752667562-9ff04820b → 2.0.0-dev.1752753955-aee6d311c
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 +3 -4
- package/dist/index.d.ts +3 -4
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1194,7 +1194,9 @@ import { ComponentType as ComponentType21 } from "discord-api-types/v10";
|
|
|
1194
1194
|
import { ButtonStyle as ButtonStyle5, ComponentType as ComponentType20 } from "discord-api-types/v10";
|
|
1195
1195
|
|
|
1196
1196
|
// src/components/v2/Container.ts
|
|
1197
|
-
import {
|
|
1197
|
+
import {
|
|
1198
|
+
ComponentType as ComponentType19
|
|
1199
|
+
} from "discord-api-types/v10";
|
|
1198
1200
|
|
|
1199
1201
|
// src/components/v2/Assertions.ts
|
|
1200
1202
|
import { ComponentType as ComponentType12, SeparatorSpacingSize } from "discord-api-types/v10";
|
|
@@ -3259,7 +3261,9 @@ var ChatInputCommandBuilder = class extends Mixin8(
|
|
|
3259
3261
|
// src/interactions/commands/contextMenu/Assertions.ts
|
|
3260
3262
|
import { ApplicationCommandType as ApplicationCommandType2, ApplicationIntegrationType as ApplicationIntegrationType2, InteractionContextType as InteractionContextType2 } from "discord-api-types/v10";
|
|
3261
3263
|
import { z as z7 } from "zod";
|
|
3262
|
-
var namePredicate2 = z7.string().min(1).max(32).
|
|
3264
|
+
var namePredicate2 = z7.string().min(1).max(32).refine((val) => val.trim().length > 0, {
|
|
3265
|
+
error: "Must not consist of only whitespace."
|
|
3266
|
+
});
|
|
3263
3267
|
var contextsPredicate = z7.array(z7.enum(InteractionContextType2));
|
|
3264
3268
|
var integrationTypesPredicate = z7.array(z7.enum(ApplicationIntegrationType2));
|
|
3265
3269
|
var baseContextMenuCommandPredicate = z7.object({
|
|
@@ -5308,7 +5312,7 @@ var MessageBuilder = class {
|
|
|
5308
5312
|
};
|
|
5309
5313
|
|
|
5310
5314
|
// src/index.ts
|
|
5311
|
-
var version = "2.0.0-dev.
|
|
5315
|
+
var version = "2.0.0-dev.1752753955-aee6d311c";
|
|
5312
5316
|
export {
|
|
5313
5317
|
ActionRowBuilder,
|
|
5314
5318
|
AllowedMentionsBuilder,
|