@discordjs/builders 2.0.0-dev.1745453588-abc5d99ce → 2.0.0-dev.1745626390-8f375275c
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 +99 -37
- package/dist/index.d.ts +99 -37
- package/dist/index.js +105 -50
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +104 -50
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as discord_api_types_v10 from 'discord-api-types/v10';
|
|
2
|
-
import { APIButtonComponent, APIButtonComponentWithSKUId, APIMessageComponentEmoji, APIBaseComponent, ComponentType, APIButtonComponentWithCustomId, APIButtonComponentWithURL, Snowflake, APISelectMenuComponent, APIChannelSelectComponent, ChannelType, APIMentionableSelectComponent, APISelectMenuDefaultValue, SelectMenuDefaultValueType, APIRoleSelectComponent, APISelectMenuOption, APIStringSelectComponent, APIUserSelectComponent, APITextInputComponent, TextInputStyle, APIFileComponent, APIMediaGalleryItem, APIMediaGalleryComponent, APITextDisplayComponent, APIThumbnailComponent, APISectionComponent, ButtonStyle, APISeparatorComponent, SeparatorSpacingSize, APIContainerComponent, APIActionRowComponent, APIComponentInContainer, APIModalComponent, APIMessageComponent, APISectionAccessoryComponent, APIComponentInActionRow, APIApplicationCommandIntegerOption, APIApplicationCommandChannelOption, APIApplicationCommandNumberOption, APIApplicationCommandStringOption, APIApplicationCommandOptionChoice, RESTPostAPIApplicationCommandsJSONBody, Locale, APIApplicationCommand, APIApplicationCommandBasicOption, APIApplicationCommandOption, ApplicationCommandOptionType, APIApplicationCommandSubcommandOption, APIApplicationCommandSubcommandGroupOption, InteractionContextType, ApplicationIntegrationType, Permissions, RESTPostAPIChatInputApplicationCommandsJSONBody, ApplicationCommandType, RESTPostAPIContextMenuApplicationCommandsJSONBody, APIModalInteractionResponseCallbackData, APIComponentInModalActionRow, APIEmbedAuthor, APIEmbedField, APIEmbedFooter, APIEmbed, PollLayoutType, APIPollMedia, APIPartialEmoji, APIPollAnswer, RESTAPIPoll, APIAllowedMentions, AllowedMentionsTypes, MessageReferenceType, RESTAPIAttachment,
|
|
2
|
+
import { APIButtonComponent, APIButtonComponentWithSKUId, APIMessageComponentEmoji, APIBaseComponent, ComponentType, APIButtonComponentWithCustomId, APIButtonComponentWithURL, Snowflake, APISelectMenuComponent, APIChannelSelectComponent, ChannelType, APIMentionableSelectComponent, APISelectMenuDefaultValue, SelectMenuDefaultValueType, APIRoleSelectComponent, APISelectMenuOption, APIStringSelectComponent, APIUserSelectComponent, APITextInputComponent, TextInputStyle, APIFileComponent, APIMediaGalleryItem, APIMediaGalleryComponent, APITextDisplayComponent, APIThumbnailComponent, APISectionComponent, ButtonStyle, APISeparatorComponent, SeparatorSpacingSize, APIContainerComponent, APIActionRowComponent, APIComponentInContainer, APIModalComponent, APIMessageComponent, APISectionAccessoryComponent, APIComponentInActionRow, APIApplicationCommandIntegerOption, APIApplicationCommandChannelOption, APIApplicationCommandNumberOption, APIApplicationCommandStringOption, APIApplicationCommandOptionChoice, RESTPostAPIApplicationCommandsJSONBody, Locale, APIApplicationCommand, APIApplicationCommandBasicOption, APIApplicationCommandOption, ApplicationCommandOptionType, APIApplicationCommandSubcommandOption, APIApplicationCommandSubcommandGroupOption, InteractionContextType, ApplicationIntegrationType, Permissions, RESTPostAPIChatInputApplicationCommandsJSONBody, ApplicationCommandType, RESTPostAPIContextMenuApplicationCommandsJSONBody, APIModalInteractionResponseCallbackData, APIComponentInModalActionRow, APIEmbedAuthor, APIEmbedField, APIEmbedFooter, APIEmbed, PollLayoutType, APIPollMedia, APIPartialEmoji, APIPollAnswer, RESTAPIPoll, APIAllowedMentions, AllowedMentionsTypes, MessageReferenceType, RESTAPIAttachment, RESTAPIMessageReference, RESTPostAPIChannelMessageJSONBody, APIMessageReference, APIComponentInMessageActionRow as APIComponentInMessageActionRow$1, APIMessageTopLevelComponent, APIAttachment, MessageFlags, APIPoll } from 'discord-api-types/v10';
|
|
3
3
|
import { JSONEncodable } from '@discordjs/util';
|
|
4
4
|
import * as ts_mixer_dist_types_types_js from 'ts-mixer/dist/types/types.js';
|
|
5
5
|
import * as zod from 'zod';
|
|
@@ -8038,10 +8038,10 @@ declare const ChatInputCommandBuilder_base: ts_mixer_dist_types_types_js.Class<a
|
|
|
8038
8038
|
/**
|
|
8039
8039
|
* A builder that creates API-compatible JSON data for chat input commands.
|
|
8040
8040
|
*
|
|
8041
|
-
* @mixes CommandBuilder
|
|
8042
|
-
* @mixes SharedChatInputCommandOptions
|
|
8043
|
-
* @mixes SharedNameAndDescription
|
|
8044
|
-
* @mixes SharedChatInputCommandSubcommands
|
|
8041
|
+
* @mixes {@link CommandBuilder}\<{@link discord-api-types/v10#(RESTPostAPIChatInputApplicationCommandsJSONBody:interface)}\>
|
|
8042
|
+
* @mixes {@link SharedChatInputCommandOptions}
|
|
8043
|
+
* @mixes {@link SharedNameAndDescription}
|
|
8044
|
+
* @mixes {@link SharedChatInputCommandSubcommands}
|
|
8045
8045
|
*/
|
|
8046
8046
|
declare class ChatInputCommandBuilder extends ChatInputCommandBuilder_base {
|
|
8047
8047
|
/**
|
|
@@ -9555,9 +9555,9 @@ declare class PollBuilder implements JSONEncodable<RESTAPIPoll> {
|
|
|
9555
9555
|
declare class AllowedMentionsBuilder implements JSONEncodable<APIAllowedMentions> {
|
|
9556
9556
|
private readonly data;
|
|
9557
9557
|
/**
|
|
9558
|
-
* Creates new allowed
|
|
9558
|
+
* Creates a new allowed mentions builder from API data.
|
|
9559
9559
|
*
|
|
9560
|
-
* @param data - The API data to create this
|
|
9560
|
+
* @param data - The API data to create this allowed mentions builder with
|
|
9561
9561
|
*/
|
|
9562
9562
|
constructor(data?: Partial<APIAllowedMentions>);
|
|
9563
9563
|
/**
|
|
@@ -9566,6 +9566,10 @@ declare class AllowedMentionsBuilder implements JSONEncodable<APIAllowedMentions
|
|
|
9566
9566
|
* @param parse - The types of mentions to parse from the content
|
|
9567
9567
|
*/
|
|
9568
9568
|
setParse(...parse: RestOrArray<AllowedMentionsTypes>): this;
|
|
9569
|
+
/**
|
|
9570
|
+
* Clears the parse mention types.
|
|
9571
|
+
*/
|
|
9572
|
+
clearParse(): this;
|
|
9569
9573
|
/**
|
|
9570
9574
|
* Sets the roles to mention.
|
|
9571
9575
|
*
|
|
@@ -9592,7 +9596,7 @@ declare class AllowedMentionsBuilder implements JSONEncodable<APIAllowedMentions
|
|
|
9592
9596
|
* allowedMentions.spliceRoles(0, 1);
|
|
9593
9597
|
* ```
|
|
9594
9598
|
* @example
|
|
9595
|
-
* Remove the first n
|
|
9599
|
+
* Remove the first n roles:
|
|
9596
9600
|
* ```ts
|
|
9597
9601
|
* const n = 4;
|
|
9598
9602
|
* allowedMentions.spliceRoles(0, n);
|
|
@@ -9607,6 +9611,10 @@ declare class AllowedMentionsBuilder implements JSONEncodable<APIAllowedMentions
|
|
|
9607
9611
|
* @param roles - The replacing role ids
|
|
9608
9612
|
*/
|
|
9609
9613
|
spliceRoles(index: number, deleteCount: number, ...roles: RestOrArray<Snowflake>): this;
|
|
9614
|
+
/**
|
|
9615
|
+
* Clears the roles to mention.
|
|
9616
|
+
*/
|
|
9617
|
+
clearRoles(): this;
|
|
9610
9618
|
/**
|
|
9611
9619
|
* Sets the users to mention.
|
|
9612
9620
|
*
|
|
@@ -9633,7 +9641,7 @@ declare class AllowedMentionsBuilder implements JSONEncodable<APIAllowedMentions
|
|
|
9633
9641
|
* allowedMentions.spliceUsers(0, 1);
|
|
9634
9642
|
* ```
|
|
9635
9643
|
* @example
|
|
9636
|
-
* Remove the first n
|
|
9644
|
+
* Remove the first n users:
|
|
9637
9645
|
* ```ts
|
|
9638
9646
|
* const n = 4;
|
|
9639
9647
|
* allowedMentions.spliceUsers(0, n);
|
|
@@ -9649,7 +9657,13 @@ declare class AllowedMentionsBuilder implements JSONEncodable<APIAllowedMentions
|
|
|
9649
9657
|
*/
|
|
9650
9658
|
spliceUsers(index: number, deleteCount: number, ...users: RestOrArray<Snowflake>): this;
|
|
9651
9659
|
/**
|
|
9652
|
-
*
|
|
9660
|
+
* Clears the users to mention.
|
|
9661
|
+
*/
|
|
9662
|
+
clearUsers(): this;
|
|
9663
|
+
/**
|
|
9664
|
+
* For replies, sets whether to mention the author of the message being replied to.
|
|
9665
|
+
*
|
|
9666
|
+
* @param repliedUser - Whether to mention the author of the message being replied to
|
|
9653
9667
|
*/
|
|
9654
9668
|
setRepliedUser(repliedUser?: boolean): this;
|
|
9655
9669
|
/**
|
|
@@ -9684,7 +9698,7 @@ declare const attachmentPredicate: z.ZodObject<{
|
|
|
9684
9698
|
filename?: string | undefined;
|
|
9685
9699
|
waveform?: string | undefined;
|
|
9686
9700
|
}>;
|
|
9687
|
-
declare const allowedMentionPredicate: z.ZodObject<{
|
|
9701
|
+
declare const allowedMentionPredicate: z.ZodEffects<z.ZodObject<{
|
|
9688
9702
|
parse: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof AllowedMentionsTypes>, "many">>;
|
|
9689
9703
|
roles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
9690
9704
|
users: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -9699,6 +9713,16 @@ declare const allowedMentionPredicate: z.ZodObject<{
|
|
|
9699
9713
|
roles?: string[] | undefined;
|
|
9700
9714
|
users?: string[] | undefined;
|
|
9701
9715
|
replied_user?: boolean | undefined;
|
|
9716
|
+
}>, {
|
|
9717
|
+
parse?: AllowedMentionsTypes[] | undefined;
|
|
9718
|
+
roles?: string[] | undefined;
|
|
9719
|
+
users?: string[] | undefined;
|
|
9720
|
+
replied_user?: boolean | undefined;
|
|
9721
|
+
}, {
|
|
9722
|
+
parse?: AllowedMentionsTypes[] | undefined;
|
|
9723
|
+
roles?: string[] | undefined;
|
|
9724
|
+
users?: string[] | undefined;
|
|
9725
|
+
replied_user?: boolean | undefined;
|
|
9702
9726
|
}>;
|
|
9703
9727
|
declare const messageReferencePredicate: z.ZodObject<{
|
|
9704
9728
|
channel_id: z.ZodOptional<z.ZodString>;
|
|
@@ -9722,7 +9746,7 @@ declare const messageReferencePredicate: z.ZodObject<{
|
|
|
9722
9746
|
declare const messagePredicate: z.ZodUnion<[z.ZodEffects<z.ZodObject<z.objectUtil.extendShape<{
|
|
9723
9747
|
nonce: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
9724
9748
|
tts: z.ZodOptional<z.ZodBoolean>;
|
|
9725
|
-
allowed_mentions: z.ZodOptional<z.ZodObject<{
|
|
9749
|
+
allowed_mentions: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
9726
9750
|
parse: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof AllowedMentionsTypes>, "many">>;
|
|
9727
9751
|
roles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
9728
9752
|
users: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -9737,6 +9761,16 @@ declare const messagePredicate: z.ZodUnion<[z.ZodEffects<z.ZodObject<z.objectUti
|
|
|
9737
9761
|
roles?: string[] | undefined;
|
|
9738
9762
|
users?: string[] | undefined;
|
|
9739
9763
|
replied_user?: boolean | undefined;
|
|
9764
|
+
}>, {
|
|
9765
|
+
parse?: AllowedMentionsTypes[] | undefined;
|
|
9766
|
+
roles?: string[] | undefined;
|
|
9767
|
+
users?: string[] | undefined;
|
|
9768
|
+
replied_user?: boolean | undefined;
|
|
9769
|
+
}, {
|
|
9770
|
+
parse?: AllowedMentionsTypes[] | undefined;
|
|
9771
|
+
roles?: string[] | undefined;
|
|
9772
|
+
users?: string[] | undefined;
|
|
9773
|
+
replied_user?: boolean | undefined;
|
|
9740
9774
|
}>>;
|
|
9741
9775
|
message_reference: z.ZodOptional<z.ZodObject<{
|
|
9742
9776
|
channel_id: z.ZodOptional<z.ZodString>;
|
|
@@ -10440,7 +10474,7 @@ declare const messagePredicate: z.ZodUnion<[z.ZodEffects<z.ZodObject<z.objectUti
|
|
|
10440
10474
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
10441
10475
|
nonce: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
10442
10476
|
tts: z.ZodOptional<z.ZodBoolean>;
|
|
10443
|
-
allowed_mentions: z.ZodOptional<z.ZodObject<{
|
|
10477
|
+
allowed_mentions: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
10444
10478
|
parse: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof AllowedMentionsTypes>, "many">>;
|
|
10445
10479
|
roles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
10446
10480
|
users: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -10455,6 +10489,16 @@ declare const messagePredicate: z.ZodUnion<[z.ZodEffects<z.ZodObject<z.objectUti
|
|
|
10455
10489
|
roles?: string[] | undefined;
|
|
10456
10490
|
users?: string[] | undefined;
|
|
10457
10491
|
replied_user?: boolean | undefined;
|
|
10492
|
+
}>, {
|
|
10493
|
+
parse?: AllowedMentionsTypes[] | undefined;
|
|
10494
|
+
roles?: string[] | undefined;
|
|
10495
|
+
users?: string[] | undefined;
|
|
10496
|
+
replied_user?: boolean | undefined;
|
|
10497
|
+
}, {
|
|
10498
|
+
parse?: AllowedMentionsTypes[] | undefined;
|
|
10499
|
+
roles?: string[] | undefined;
|
|
10500
|
+
users?: string[] | undefined;
|
|
10501
|
+
replied_user?: boolean | undefined;
|
|
10458
10502
|
}>>;
|
|
10459
10503
|
message_reference: z.ZodOptional<z.ZodObject<{
|
|
10460
10504
|
channel_id: z.ZodOptional<z.ZodString>;
|
|
@@ -10614,21 +10658,21 @@ declare const messagePredicate: z.ZodUnion<[z.ZodEffects<z.ZodObject<z.objectUti
|
|
|
10614
10658
|
declare class AttachmentBuilder implements JSONEncodable<RESTAPIAttachment> {
|
|
10615
10659
|
private readonly data;
|
|
10616
10660
|
/**
|
|
10617
|
-
* Creates new attachment builder from API data.
|
|
10661
|
+
* Creates a new attachment builder from API data.
|
|
10618
10662
|
*
|
|
10619
|
-
* @param data - The API data to create this attachment with
|
|
10663
|
+
* @param data - The API data to create this attachment builder with
|
|
10620
10664
|
*/
|
|
10621
10665
|
constructor(data?: Partial<RESTAPIAttachment>);
|
|
10622
10666
|
/**
|
|
10667
|
+
* Sets the id of the attachment.
|
|
10668
|
+
*
|
|
10623
10669
|
* @param id - The id of the attachment
|
|
10624
10670
|
*/
|
|
10625
10671
|
setId(id: Snowflake): this;
|
|
10626
|
-
/**
|
|
10627
|
-
* Clears the id of this attachment.
|
|
10628
|
-
*/
|
|
10629
|
-
clearId(): this;
|
|
10630
10672
|
/**
|
|
10631
10673
|
* Sets the description of this attachment.
|
|
10674
|
+
*
|
|
10675
|
+
* @param description - The description of the attachment
|
|
10632
10676
|
*/
|
|
10633
10677
|
setDescription(description: string): this;
|
|
10634
10678
|
/**
|
|
@@ -10666,7 +10710,7 @@ declare class AttachmentBuilder implements JSONEncodable<RESTAPIAttachment> {
|
|
|
10666
10710
|
*/
|
|
10667
10711
|
clearTitle(): this;
|
|
10668
10712
|
/**
|
|
10669
|
-
* Sets the waveform of this attachment.
|
|
10713
|
+
* Sets the waveform of this attachment (audio clips).
|
|
10670
10714
|
*
|
|
10671
10715
|
* @param waveform - The waveform of the attachment
|
|
10672
10716
|
*/
|
|
@@ -10685,22 +10729,19 @@ declare class AttachmentBuilder implements JSONEncodable<RESTAPIAttachment> {
|
|
|
10685
10729
|
toJSON(validationOverride?: boolean): RESTAPIAttachment;
|
|
10686
10730
|
}
|
|
10687
10731
|
|
|
10688
|
-
interface MessageReferenceBuilderData extends Omit<APIMessageReference, 'message_id'> {
|
|
10689
|
-
message_id: Snowflake;
|
|
10690
|
-
}
|
|
10691
10732
|
/**
|
|
10692
10733
|
* A builder that creates API-compatible JSON data for message references.
|
|
10693
10734
|
*/
|
|
10694
|
-
declare class MessageReferenceBuilder implements JSONEncodable<
|
|
10735
|
+
declare class MessageReferenceBuilder implements JSONEncodable<RESTAPIMessageReference> {
|
|
10695
10736
|
private readonly data;
|
|
10696
10737
|
/**
|
|
10697
|
-
* Creates new
|
|
10738
|
+
* Creates a new message reference builder from API data.
|
|
10698
10739
|
*
|
|
10699
|
-
* @param data - The API data to create this
|
|
10740
|
+
* @param data - The API data to create this message reference builder with
|
|
10700
10741
|
*/
|
|
10701
|
-
constructor(data?: Partial<
|
|
10742
|
+
constructor(data?: Partial<RESTAPIMessageReference>);
|
|
10702
10743
|
/**
|
|
10703
|
-
* Sets the
|
|
10744
|
+
* Sets the type of message reference this represents
|
|
10704
10745
|
*
|
|
10705
10746
|
* @param type - The type of message reference
|
|
10706
10747
|
*/
|
|
@@ -10735,6 +10776,12 @@ declare class MessageReferenceBuilder implements JSONEncodable<MessageReferenceB
|
|
|
10735
10776
|
* Clear the id of the guild being referenced
|
|
10736
10777
|
*/
|
|
10737
10778
|
clearGuildId(): this;
|
|
10779
|
+
/**
|
|
10780
|
+
* Sets whether to fail the message creation if the referenced message does not exist
|
|
10781
|
+
*
|
|
10782
|
+
* @param failIfNotExists - Whether to fail the message creation if the referenced message does not exist
|
|
10783
|
+
*/
|
|
10784
|
+
setFailIfNotExists(failIfNotExists?: boolean): this;
|
|
10738
10785
|
/**
|
|
10739
10786
|
* Serializes this builder to API-compatible JSON data.
|
|
10740
10787
|
*
|
|
@@ -10742,7 +10789,7 @@ declare class MessageReferenceBuilder implements JSONEncodable<MessageReferenceB
|
|
|
10742
10789
|
*
|
|
10743
10790
|
* @param validationOverride - Force validation to run/not run regardless of your global preference
|
|
10744
10791
|
*/
|
|
10745
|
-
toJSON(validationOverride?: boolean):
|
|
10792
|
+
toJSON(validationOverride?: boolean): RESTAPIMessageReference;
|
|
10746
10793
|
}
|
|
10747
10794
|
|
|
10748
10795
|
interface MessageBuilderData extends Partial<Omit<RESTPostAPIChannelMessageJSONBody, 'allowed_mentions' | 'attachments' | 'components' | 'embeds' | 'message_reference' | 'poll'>> {
|
|
@@ -10753,6 +10800,9 @@ interface MessageBuilderData extends Partial<Omit<RESTPostAPIChannelMessageJSONB
|
|
|
10753
10800
|
message_reference?: MessageReferenceBuilder;
|
|
10754
10801
|
poll?: PollBuilder;
|
|
10755
10802
|
}
|
|
10803
|
+
/**
|
|
10804
|
+
* A builder that creates API-compatible JSON data for messages.
|
|
10805
|
+
*/
|
|
10756
10806
|
declare class MessageBuilder implements JSONEncodable<RESTPostAPIChannelMessageJSONBody> {
|
|
10757
10807
|
/**
|
|
10758
10808
|
* The API data associated with this message.
|
|
@@ -10771,11 +10821,11 @@ declare class MessageBuilder implements JSONEncodable<RESTPostAPIChannelMessageJ
|
|
|
10771
10821
|
*/
|
|
10772
10822
|
get embeds(): readonly EmbedBuilder[];
|
|
10773
10823
|
/**
|
|
10774
|
-
* Creates new
|
|
10824
|
+
* Creates a new message builder from API data.
|
|
10775
10825
|
*
|
|
10776
|
-
* @param data - The API data to create this
|
|
10826
|
+
* @param data - The API data to create this message builder with
|
|
10777
10827
|
*/
|
|
10778
|
-
constructor(data?: Partial<RESTPostAPIChannelMessageJSONBody>);
|
|
10828
|
+
constructor({ attachments, embeds, components, message_reference, poll, allowed_mentions, ...data }?: Partial<RESTPostAPIChannelMessageJSONBody>);
|
|
10779
10829
|
/**
|
|
10780
10830
|
* Sets the content of the message.
|
|
10781
10831
|
*
|
|
@@ -10798,6 +10848,8 @@ declare class MessageBuilder implements JSONEncodable<RESTPostAPIChannelMessageJ
|
|
|
10798
10848
|
clearNonce(): this;
|
|
10799
10849
|
/**
|
|
10800
10850
|
* Sets whether the message is TTS.
|
|
10851
|
+
*
|
|
10852
|
+
* @param tts - Whether the message is TTS
|
|
10801
10853
|
*/
|
|
10802
10854
|
setTTS(tts?: boolean): this;
|
|
10803
10855
|
/**
|
|
@@ -10853,6 +10905,12 @@ declare class MessageBuilder implements JSONEncodable<RESTPostAPIChannelMessageJ
|
|
|
10853
10905
|
* @param embeds - The embeds to insert
|
|
10854
10906
|
*/
|
|
10855
10907
|
spliceEmbeds(start: number, deleteCount: number, ...embeds: RestOrArray<APIEmbed | EmbedBuilder | ((builder: EmbedBuilder) => EmbedBuilder)>): this;
|
|
10908
|
+
/**
|
|
10909
|
+
* Sets the embeds for this message.
|
|
10910
|
+
*
|
|
10911
|
+
* @param embeds - The embeds to set
|
|
10912
|
+
*/
|
|
10913
|
+
setEmbeds(...embeds: RestOrArray<APIEmbed | EmbedBuilder | ((builder: EmbedBuilder) => EmbedBuilder)>): this;
|
|
10856
10914
|
/**
|
|
10857
10915
|
* Sets the allowed mentions for this message.
|
|
10858
10916
|
*
|
|
@@ -10864,7 +10922,7 @@ declare class MessageBuilder implements JSONEncodable<RESTPostAPIChannelMessageJ
|
|
|
10864
10922
|
*
|
|
10865
10923
|
* @param updater - The function to update the allowed mentions with
|
|
10866
10924
|
*/
|
|
10867
|
-
updateAllowedMentions(updater: (builder: AllowedMentionsBuilder) =>
|
|
10925
|
+
updateAllowedMentions(updater: (builder: AllowedMentionsBuilder) => void): this;
|
|
10868
10926
|
/**
|
|
10869
10927
|
* Clears the allowed mentions for this message.
|
|
10870
10928
|
*/
|
|
@@ -10880,7 +10938,7 @@ declare class MessageBuilder implements JSONEncodable<RESTPostAPIChannelMessageJ
|
|
|
10880
10938
|
*
|
|
10881
10939
|
* @param updater - The function to update the message reference with
|
|
10882
10940
|
*/
|
|
10883
|
-
updateMessageReference(updater: (builder: MessageReferenceBuilder) =>
|
|
10941
|
+
updateMessageReference(updater: (builder: MessageReferenceBuilder) => void): this;
|
|
10884
10942
|
/**
|
|
10885
10943
|
* Clears the message reference for this message.
|
|
10886
10944
|
*/
|
|
@@ -11040,6 +11098,8 @@ declare class MessageBuilder implements JSONEncodable<RESTPostAPIChannelMessageJ
|
|
|
11040
11098
|
spliceAttachments(start: number, deleteCount: number, ...attachments: RestOrArray<APIAttachment | AttachmentBuilder | ((builder: AttachmentBuilder) => AttachmentBuilder)>): this;
|
|
11041
11099
|
/**
|
|
11042
11100
|
* Sets the flags for this message.
|
|
11101
|
+
*
|
|
11102
|
+
* @param flags - The flags to set
|
|
11043
11103
|
*/
|
|
11044
11104
|
setFlags(flags: MessageFlags): this;
|
|
11045
11105
|
/**
|
|
@@ -11047,7 +11107,9 @@ declare class MessageBuilder implements JSONEncodable<RESTPostAPIChannelMessageJ
|
|
|
11047
11107
|
*/
|
|
11048
11108
|
clearFlags(): this;
|
|
11049
11109
|
/**
|
|
11050
|
-
* Sets
|
|
11110
|
+
* Sets whether to enforce recent uniqueness of the nonce of this message.
|
|
11111
|
+
*
|
|
11112
|
+
* @param enforceNonce - Whether to enforce recent uniqueness of the nonce of this message
|
|
11051
11113
|
*/
|
|
11052
11114
|
setEnforceNonce(enforceNonce?: boolean): this;
|
|
11053
11115
|
/**
|
|
@@ -11061,7 +11123,7 @@ declare class MessageBuilder implements JSONEncodable<RESTPostAPIChannelMessageJ
|
|
|
11061
11123
|
*
|
|
11062
11124
|
* @param updater - The function to update the poll with
|
|
11063
11125
|
*/
|
|
11064
|
-
updatePoll(updater: (builder: PollBuilder) =>
|
|
11126
|
+
updatePoll(updater: (builder: PollBuilder) => void): this;
|
|
11065
11127
|
/**
|
|
11066
11128
|
* Clears the poll for this message.
|
|
11067
11129
|
*/
|
|
@@ -11202,4 +11264,4 @@ declare const refineURLPredicate: (allowedProtocols: string[]) => (value: string
|
|
|
11202
11264
|
*/
|
|
11203
11265
|
declare const version: string;
|
|
11204
11266
|
|
|
11205
|
-
export { ActionRowBuilder, type ActionRowBuilderData, AllowedMentionsBuilder, type AnyActionRowComponentBuilder, type ApplicationCommandNumericOptionMinMaxValueData, ApplicationCommandNumericOptionMinMaxValueMixin, ApplicationCommandOptionAllowedChannelTypes, ApplicationCommandOptionBase, type ApplicationCommandOptionBaseData, type ApplicationCommandOptionChannelTypesData, ApplicationCommandOptionChannelTypesMixin, type ApplicationCommandOptionWithAutocompleteData, ApplicationCommandOptionWithAutocompleteMixin, type ApplicationCommandOptionWithChoicesData, ApplicationCommandOptionWithChoicesMixin, AttachmentBuilder, type AutocompletableOptions, BaseButtonBuilder, BaseSelectMenuBuilder, type ButtonBuilder, ChannelSelectMenuBuilder, ChatInputCommandAttachmentOption, ChatInputCommandBooleanOption, ChatInputCommandBuilder, ChatInputCommandChannelOption, ChatInputCommandIntegerOption, ChatInputCommandMentionableOption, ChatInputCommandNumberOption, ChatInputCommandRoleOption, ChatInputCommandStringOption, ChatInputCommandSubcommandBuilder, ChatInputCommandSubcommandGroupBuilder, type ChatInputCommandSubcommandGroupData, ChatInputCommandUserOption, CommandBuilder, type CommandData, ComponentBuilder, type ComponentBuilderBaseData, ContextMenuCommandBuilder, type ContextMenuCommandType, CustomIdButtonBuilder, type CustomIdButtonStyle, DangerButtonBuilder, EmbedAuthorBuilder, EmbedBuilder, type EmbedBuilderData, EmbedFieldBuilder, EmbedFooterBuilder, type EmojiOrLabelButtonData, EmojiOrLabelButtonMixin, FileBuilder, LinkButtonBuilder, type MappedComponentTypes, MediaGalleryBuilder, type MediaGalleryBuilderData, MediaGalleryItemBuilder, MentionableSelectMenuBuilder, type MessageActionRowComponentBuilder, MessageBuilder, type MessageBuilderData, type MessageComponentBuilder, MessageContextCommandBuilder, MessageReferenceBuilder, type
|
|
11267
|
+
export { ActionRowBuilder, type ActionRowBuilderData, AllowedMentionsBuilder, type AnyActionRowComponentBuilder, type ApplicationCommandNumericOptionMinMaxValueData, ApplicationCommandNumericOptionMinMaxValueMixin, ApplicationCommandOptionAllowedChannelTypes, ApplicationCommandOptionBase, type ApplicationCommandOptionBaseData, type ApplicationCommandOptionChannelTypesData, ApplicationCommandOptionChannelTypesMixin, type ApplicationCommandOptionWithAutocompleteData, ApplicationCommandOptionWithAutocompleteMixin, type ApplicationCommandOptionWithChoicesData, ApplicationCommandOptionWithChoicesMixin, AttachmentBuilder, type AutocompletableOptions, BaseButtonBuilder, BaseSelectMenuBuilder, type ButtonBuilder, ChannelSelectMenuBuilder, ChatInputCommandAttachmentOption, ChatInputCommandBooleanOption, ChatInputCommandBuilder, ChatInputCommandChannelOption, ChatInputCommandIntegerOption, ChatInputCommandMentionableOption, ChatInputCommandNumberOption, ChatInputCommandRoleOption, ChatInputCommandStringOption, ChatInputCommandSubcommandBuilder, ChatInputCommandSubcommandGroupBuilder, type ChatInputCommandSubcommandGroupData, ChatInputCommandUserOption, CommandBuilder, type CommandData, ComponentBuilder, type ComponentBuilderBaseData, ContainerBuilder, type ContainerBuilderData, type ContainerComponentBuilders, ContextMenuCommandBuilder, type ContextMenuCommandType, CustomIdButtonBuilder, type CustomIdButtonStyle, DangerButtonBuilder, EmbedAuthorBuilder, EmbedBuilder, type EmbedBuilderData, EmbedFieldBuilder, EmbedFooterBuilder, type EmojiOrLabelButtonData, EmojiOrLabelButtonMixin, FileBuilder, LinkButtonBuilder, type MappedComponentTypes, MediaGalleryBuilder, type MediaGalleryBuilderData, MediaGalleryItemBuilder, MentionableSelectMenuBuilder, type MessageActionRowComponentBuilder, MessageBuilder, type MessageBuilderData, type MessageComponentBuilder, MessageContextCommandBuilder, MessageReferenceBuilder, type MessageTopLevelComponentBuilder, type ModalActionRowComponentBuilder, ModalBuilder, type ModalBuilderData, type ModalComponentBuilder, PollAnswerBuilder, type PollAnswerData, PollAnswerMediaBuilder, PollBuilder, type PollData, PollMediaBuilder, PollQuestionBuilder, PremiumButtonBuilder, PrimaryButtonBuilder, type RestOrArray, RoleSelectMenuBuilder, SecondaryButtonBuilder, SectionBuilder, type SectionBuilderAccessory, type SectionBuilderData, SeparatorBuilder, SharedChatInputCommandOptions, type SharedChatInputCommandOptionsData, SharedChatInputCommandSubcommands, type SharedChatInputCommandSubcommandsData, SharedName, SharedNameAndDescription, type SharedNameAndDescriptionData, type SharedNameData, StringSelectMenuBuilder, type StringSelectMenuData, StringSelectMenuOptionBuilder, SuccessButtonBuilder, TextDisplayBuilder, TextInputBuilder, ThumbnailBuilder, UserContextCommandBuilder, UserSelectMenuBuilder, actionRowPredicate, allowedMentionPredicate, attachmentPredicate, basicOptionPredicate, buttonPredicate, channelOptionPredicate, chatInputCommandPredicate, chatInputCommandSubcommandGroupPredicate, chatInputCommandSubcommandPredicate, containerPredicate, createComponentBuilder, customIdPredicate, disableValidators, embedAuthorPredicate, embedFieldPredicate, embedFooterPredicate, embedLength, embedPredicate, emojiPredicate, enableValidators, filePredicate, integerOptionPredicate, isValidationEnabled, localeMapPredicate, mediaGalleryItemPredicate, mediaGalleryPredicate, memberPermissionsPredicate, messageCommandPredicate, messagePredicate, messageReferencePredicate, modalPredicate, normalizeArray, numberOptionPredicate, pollAnswerMediaPredicate, pollAnswerPredicate, pollPredicate, pollQuestionPredicate, refineURLPredicate, resolveAccessoryComponent, resolveBuilder, sectionPredicate, selectMenuChannelPredicate, selectMenuMentionablePredicate, selectMenuRolePredicate, selectMenuStringOptionPredicate, selectMenuStringPredicate, selectMenuUserPredicate, separatorPredicate, stringOptionPredicate, textDisplayPredicate, textInputPredicate, thumbnailPredicate, userCommandPredicate, validate, version };
|