@discordjs/builders 2.0.0-dev.1765195314-d518c9784 → 2.0.0-dev.1765281707-2c3bf5c81
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 +1 -1
- package/dist/index.d.ts +1 -1
- 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 +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -4566,7 +4566,7 @@ declare class MessageBuilder implements JSONEncodable<RESTPostAPIChannelMessageJ
|
|
|
4566
4566
|
*
|
|
4567
4567
|
* @param allowedMentions - The allowed mentions to set
|
|
4568
4568
|
*/
|
|
4569
|
-
setAllowedMentions(allowedMentions
|
|
4569
|
+
setAllowedMentions(allowedMentions?: AllowedMentionsBuilder | APIAllowedMentions | ((builder: AllowedMentionsBuilder) => AllowedMentionsBuilder)): this;
|
|
4570
4570
|
/**
|
|
4571
4571
|
* Updates the allowed mentions for this message (and creates it if it doesn't exist)
|
|
4572
4572
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -4566,7 +4566,7 @@ declare class MessageBuilder implements JSONEncodable<RESTPostAPIChannelMessageJ
|
|
|
4566
4566
|
*
|
|
4567
4567
|
* @param allowedMentions - The allowed mentions to set
|
|
4568
4568
|
*/
|
|
4569
|
-
setAllowedMentions(allowedMentions
|
|
4569
|
+
setAllowedMentions(allowedMentions?: AllowedMentionsBuilder | APIAllowedMentions | ((builder: AllowedMentionsBuilder) => AllowedMentionsBuilder)): this;
|
|
4570
4570
|
/**
|
|
4571
4571
|
* Updates the allowed mentions for this message (and creates it if it doesn't exist)
|
|
4572
4572
|
*
|
package/dist/index.js
CHANGED
|
@@ -3131,8 +3131,8 @@ var numberOptionPredicate = import_zod8.z.object({
|
|
|
3131
3131
|
...numericMixinNumberOptionPredicate.shape
|
|
3132
3132
|
}).and(autocompleteOrNumberChoicesMixinOptionPredicate);
|
|
3133
3133
|
var stringOptionPredicate = basicOptionPredicate.extend({
|
|
3134
|
-
max_length: import_zod8.z.number().min(
|
|
3135
|
-
min_length: import_zod8.z.number().min(
|
|
3134
|
+
max_length: import_zod8.z.number().min(1).max(6e3).optional(),
|
|
3135
|
+
min_length: import_zod8.z.number().min(0).max(6e3).optional()
|
|
3136
3136
|
}).and(autocompleteOrStringChoicesMixinOptionPredicate);
|
|
3137
3137
|
var baseChatInputCommandPredicate = sharedNameAndDescriptionPredicate.extend({
|
|
3138
3138
|
contexts: import_zod8.z.array(import_zod8.z.enum(import_v1028.InteractionContextType)).optional(),
|
|
@@ -5198,7 +5198,7 @@ var AttachmentBuilder = class {
|
|
|
5198
5198
|
return {
|
|
5199
5199
|
...this.fileData,
|
|
5200
5200
|
name: this.data.filename,
|
|
5201
|
-
key: this.data.id ? `files[${this.data.id}]`
|
|
5201
|
+
key: this.data.id === void 0 ? void 0 : `files[${this.data.id}]`
|
|
5202
5202
|
};
|
|
5203
5203
|
}
|
|
5204
5204
|
/**
|
|
@@ -5505,7 +5505,7 @@ var MessageBuilder = class {
|
|
|
5505
5505
|
*
|
|
5506
5506
|
* @param allowedMentions - The allowed mentions to set
|
|
5507
5507
|
*/
|
|
5508
|
-
setAllowedMentions(allowedMentions) {
|
|
5508
|
+
setAllowedMentions(allowedMentions = new AllowedMentionsBuilder()) {
|
|
5509
5509
|
this.data.allowed_mentions = resolveBuilder(allowedMentions, AllowedMentionsBuilder);
|
|
5510
5510
|
return this;
|
|
5511
5511
|
}
|
|
@@ -5862,7 +5862,7 @@ var MessageBuilder = class {
|
|
|
5862
5862
|
};
|
|
5863
5863
|
|
|
5864
5864
|
// src/index.ts
|
|
5865
|
-
var version = "2.0.0-dev.
|
|
5865
|
+
var version = "2.0.0-dev.1765281707-2c3bf5c81";
|
|
5866
5866
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5867
5867
|
0 && (module.exports = {
|
|
5868
5868
|
ActionRowBuilder,
|