@discordjs/builders 2.0.0-dev.1752624902-d03cacbde → 2.0.0-dev.1752711324-1dfc511e4
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 +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -3259,7 +3259,9 @@ var ChatInputCommandBuilder = class extends Mixin8(
|
|
|
3259
3259
|
// src/interactions/commands/contextMenu/Assertions.ts
|
|
3260
3260
|
import { ApplicationCommandType as ApplicationCommandType2, ApplicationIntegrationType as ApplicationIntegrationType2, InteractionContextType as InteractionContextType2 } from "discord-api-types/v10";
|
|
3261
3261
|
import { z as z7 } from "zod";
|
|
3262
|
-
var namePredicate2 = z7.string().min(1).max(32).
|
|
3262
|
+
var namePredicate2 = z7.string().min(1).max(32).refine((val) => val.trim().length > 0, {
|
|
3263
|
+
error: "Must not consist of only whitespace."
|
|
3264
|
+
});
|
|
3263
3265
|
var contextsPredicate = z7.array(z7.enum(InteractionContextType2));
|
|
3264
3266
|
var integrationTypesPredicate = z7.array(z7.enum(ApplicationIntegrationType2));
|
|
3265
3267
|
var baseContextMenuCommandPredicate = z7.object({
|
|
@@ -5308,7 +5310,7 @@ var MessageBuilder = class {
|
|
|
5308
5310
|
};
|
|
5309
5311
|
|
|
5310
5312
|
// src/index.ts
|
|
5311
|
-
var version = "2.0.0-dev.
|
|
5313
|
+
var version = "2.0.0-dev.1752711324-1dfc511e4";
|
|
5312
5314
|
export {
|
|
5313
5315
|
ActionRowBuilder,
|
|
5314
5316
|
AllowedMentionsBuilder,
|