@discordjs/builders 1.3.1-dev.1669118646-65bc0ad.0 → 1.3.1-dev.1669162204-ee7d2fd.0
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.ts +15 -15
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +13 -13
package/dist/index.d.ts
CHANGED
|
@@ -96,9 +96,9 @@ declare namespace Assertions$5 {
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
declare function normalizeArray<T>(arr: RestOrArray<T>): T[];
|
|
99
|
-
|
|
99
|
+
type RestOrArray<T> = T[] | [T[]];
|
|
100
100
|
|
|
101
|
-
|
|
101
|
+
type RGBTuple = [red: number, green: number, blue: number];
|
|
102
102
|
interface IconData {
|
|
103
103
|
/**
|
|
104
104
|
* The URL of the icon
|
|
@@ -109,10 +109,10 @@ interface IconData {
|
|
|
109
109
|
*/
|
|
110
110
|
proxyIconURL?: string;
|
|
111
111
|
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
112
|
+
type EmbedAuthorData = IconData & Omit<APIEmbedAuthor, 'icon_url' | 'proxy_icon_url'>;
|
|
113
|
+
type EmbedAuthorOptions = Omit<EmbedAuthorData, 'proxyIconURL'>;
|
|
114
|
+
type EmbedFooterData = IconData & Omit<APIEmbedFooter, 'icon_url' | 'proxy_icon_url'>;
|
|
115
|
+
type EmbedFooterOptions = Omit<EmbedFooterData, 'proxyIconURL'>;
|
|
116
116
|
interface EmbedImageData extends Omit<APIEmbedImage, 'proxy_url'> {
|
|
117
117
|
/**
|
|
118
118
|
* The proxy URL for the image
|
|
@@ -499,7 +499,7 @@ declare const TimestampStyles: {
|
|
|
499
499
|
/**
|
|
500
500
|
* The possible values, see {@link TimestampStyles} for more information
|
|
501
501
|
*/
|
|
502
|
-
|
|
502
|
+
type TimestampStylesString = typeof TimestampStyles[keyof typeof TimestampStyles];
|
|
503
503
|
/**
|
|
504
504
|
* An enum with all the available faces from Discord's native slash commands
|
|
505
505
|
*/
|
|
@@ -669,7 +669,7 @@ declare namespace Assertions$4 {
|
|
|
669
669
|
};
|
|
670
670
|
}
|
|
671
671
|
|
|
672
|
-
|
|
672
|
+
type AnyAPIActionRowComponent = APIActionRowComponent<APIActionRowComponentTypes> | APIActionRowComponentTypes;
|
|
673
673
|
/**
|
|
674
674
|
* Represents a discord component
|
|
675
675
|
*
|
|
@@ -1060,11 +1060,11 @@ declare class TextInputBuilder extends ComponentBuilder<APITextInputComponent> i
|
|
|
1060
1060
|
equals(other: APITextInputComponent | JSONEncodable<APITextInputComponent>): boolean;
|
|
1061
1061
|
}
|
|
1062
1062
|
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1063
|
+
type MessageComponentBuilder = ActionRowBuilder<MessageActionRowComponentBuilder> | MessageActionRowComponentBuilder;
|
|
1064
|
+
type ModalComponentBuilder = ActionRowBuilder<ModalActionRowComponentBuilder> | ModalActionRowComponentBuilder;
|
|
1065
|
+
type MessageActionRowComponentBuilder = ButtonBuilder | ChannelSelectMenuBuilder | MentionableSelectMenuBuilder | RoleSelectMenuBuilder | StringSelectMenuBuilder | UserSelectMenuBuilder;
|
|
1066
|
+
type ModalActionRowComponentBuilder = TextInputBuilder;
|
|
1067
|
+
type AnyComponentBuilder = MessageActionRowComponentBuilder | ModalActionRowComponentBuilder;
|
|
1068
1068
|
/**
|
|
1069
1069
|
* Represents an action row component
|
|
1070
1070
|
*
|
|
@@ -1294,7 +1294,7 @@ declare class SlashCommandBooleanOption extends ApplicationCommandOptionBase {
|
|
|
1294
1294
|
}
|
|
1295
1295
|
|
|
1296
1296
|
declare const allowedChannelTypes: readonly [ChannelType.GuildText, ChannelType.GuildVoice, ChannelType.GuildCategory, ChannelType.GuildAnnouncement, ChannelType.AnnouncementThread, ChannelType.PublicThread, ChannelType.PrivateThread, ChannelType.GuildStageVoice, ChannelType.GuildForum];
|
|
1297
|
-
|
|
1297
|
+
type ApplicationCommandOptionAllowedChannelTypes = typeof allowedChannelTypes[number];
|
|
1298
1298
|
declare class ApplicationCommandOptionChannelTypesMixin {
|
|
1299
1299
|
readonly channel_types?: ApplicationCommandOptionAllowedChannelTypes[];
|
|
1300
1300
|
/**
|
|
@@ -1749,7 +1749,7 @@ declare class ContextMenuCommandBuilder {
|
|
|
1749
1749
|
*/
|
|
1750
1750
|
toJSON(): RESTPostAPIContextMenuApplicationCommandsJSONBody;
|
|
1751
1751
|
}
|
|
1752
|
-
|
|
1752
|
+
type ContextMenuCommandType = ApplicationCommandType.Message | ApplicationCommandType.User;
|
|
1753
1753
|
|
|
1754
1754
|
declare function validateDefaultPermission(value: unknown): asserts value is boolean;
|
|
1755
1755
|
declare function validateName(name: unknown): asserts name is string;
|
package/dist/index.js
CHANGED
|
@@ -1576,7 +1576,7 @@ __name(embedLength, "embedLength");
|
|
|
1576
1576
|
|
|
1577
1577
|
// src/index.ts
|
|
1578
1578
|
__reExport(src_exports, require("@discordjs/util"), module.exports);
|
|
1579
|
-
var version = "1.3.1-dev.
|
|
1579
|
+
var version = "1.3.1-dev.1669162204-ee7d2fd.0";
|
|
1580
1580
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1581
1581
|
0 && (module.exports = {
|
|
1582
1582
|
ActionRowBuilder,
|