@discordjs/builders 0.14.0-dev.1653091712-fdeac9d → 0.14.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/CHANGELOG.md CHANGED
@@ -2,7 +2,29 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
- # [0.13.0](https://github.com/discordjs/discord.js/compare/@discordjs/builders@0.12.0...@discordjs/builders@0.13.0) (2022-04-17)
5
+ # [@discordjs/builders@0.14.0](https://github.com/discordjs/discord.js/compare/@discordjs/builders@0.13.0...@discordjs/builders@0.14.0) - (2022-06-04)
6
+
7
+ ## Bug Fixes
8
+
9
+ - **builders:** Leftover invalid null type ([8a7cd10](https://github.com/discordjs/discord.js/commit/8a7cd10554a2a71cd2fe7f6a177b5f4f43464348))
10
+ - **SlashCommandBuilder:** Import `Permissions` correctly (#7921) ([7ce641d](https://github.com/discordjs/discord.js/commit/7ce641d33a4af6586d5e7beffbe7d38619dcf1a2))
11
+ - Add localizations for subcommand builders and option choices (#7862) ([c1b5e73](https://github.com/discordjs/discord.js/commit/c1b5e731daa9cbbfca03a046e47cb1221ee1ed7c))
12
+
13
+ ## Features
14
+
15
+ - Export types from `interactions/slashCommands/mixins` (#7942) ([68d5169](https://github.com/discordjs/discord.js/commit/68d5169f66c96f8fe5be17a1c01cdd5155607ab2))
16
+ - **builders:** Add new command permissions v2 (#7861) ([de3f157](https://github.com/discordjs/discord.js/commit/de3f1573f07dda294cc0fbb1ca4b659eb2388a12))
17
+ - **builders:** Improve embed errors and predicates (#7795) ([ec8d87f](https://github.com/discordjs/discord.js/commit/ec8d87f93272cc9987f9613735c0361680c4ed1e))
18
+
19
+ ## Refactor
20
+
21
+ - Use arrays instead of rest parameters for builders (#7759) ([29293d7](https://github.com/discordjs/discord.js/commit/29293d7bbb5ed463e52e5a5853817e5a09cf265b))
22
+
23
+ ## Styling
24
+
25
+ - Cleanup tests and tsup configs ([6b8ef20](https://github.com/discordjs/discord.js/commit/6b8ef20cb3af5b5cfd176dd0aa0a1a1e98551629))
26
+
27
+ # [@discordjs/builders@0.13.0](https://github.com/discordjs/discord.js/compare/@discordjs/builders@0.12.0...@discordjs/builders@0.13.0) - (2022-04-17)
6
28
 
7
29
  ## Bug Fixes
8
30
 
@@ -15,13 +37,11 @@ All notable changes to this project will be documented in this file.
15
37
  - Fix some typos (#7393) ([92a04f4](https://github.com/discordjs/discord.js/commit/92a04f4d98f6c6760214034cc8f5a1eaa78893c7))
16
38
  - **builders:** Make type optional in constructor (#7391) ([4abb28c](https://github.com/discordjs/discord.js/commit/4abb28c0a1256c57a60369a6b8ec9e98c265b489))
17
39
  - Don't create new instances of builders classes (#7343) ([d6b56d0](https://github.com/discordjs/discord.js/commit/d6b56d0080c4c5f8ace731f1e8bcae0c9d3fb5a5))
18
- - **builders:** Dont export `Button` component stuff twice (#7289) ([86d9d06](https://github.com/discordjs/discord.js/commit/86d9d0674347c08d056cd054cb4ce4253195bf94))
19
40
 
20
41
  ## Documentation
21
42
 
22
43
  - Completely fix builders example link (#7543) ([1a14c0c](https://github.com/discordjs/discord.js/commit/1a14c0ca562ea173d363a770a0437209f461fd23))
23
44
  - Add slash command builders example, fixes #7338 (#7339) ([3ae6f3c](https://github.com/discordjs/discord.js/commit/3ae6f3c313091151245d6e6b52337b459ecfc765))
24
- - **SlashCommandSubcommands:** Updating old links from Discord developer portal (#7224) ([bd7a6f2](https://github.com/discordjs/discord.js/commit/bd7a6f265212624199fb0b2ddc8ece39759c63de))
25
45
 
26
46
  ## Features
27
47
 
@@ -33,7 +53,6 @@ All notable changes to this project will be documented in this file.
33
53
  - **builders:** Add attachment command option type (#7203) ([ae0f35f](https://github.com/discordjs/discord.js/commit/ae0f35f51d68dfa5a7dc43d161ef9365171debdb))
34
54
  - **components:** Add unsafe message component builders (#7387) ([6b6222b](https://github.com/discordjs/discord.js/commit/6b6222bf513d1ee8cd98fba0ad313def560b864f))
35
55
  - **embed:** Add setFields (#7322) ([bcc5cda](https://github.com/discordjs/discord.js/commit/bcc5cda8a902ddb28c7e3578e0f29b4272832624))
36
- - Add components to /builders (#7195) ([2bb40fd](https://github.com/discordjs/discord.js/commit/2bb40fd767cf5918e3ba422ff73082734bfa05b0))
37
56
 
38
57
  ## Refactor
39
58
 
@@ -55,9 +74,8 @@ All notable changes to this project will be documented in this file.
55
74
  ## Typings
56
75
 
57
76
  - Fix regressions (#7649) ([5748dbe](https://github.com/discordjs/discord.js/commit/5748dbe08783beb80c526de38ccd105eb0e82664))
58
- - Make `required` a boolean (#7307) ([c10afea](https://github.com/discordjs/discord.js/commit/c10afeadc702ab98bec5e077b3b92494a9596f9c))
59
77
 
60
- # [0.12.0](https://github.com/discordjs/discord.js/compare/@discordjs/builders@0.11.0...@discordjs/builders@0.12.0) (2021-12-08)
78
+ # [@discordjs/builders@0.12.0](https://github.com/discordjs/discord.js/compare/@discordjs/builders@0.11.0...@discordjs/builders@0.12.0) - (2022-01-24)
61
79
 
62
80
  ## Bug Fixes
63
81
 
package/dist/index.d.ts CHANGED
@@ -1160,7 +1160,7 @@ declare class SlashCommandBuilder {
1160
1160
  * Indicates whether the command is available in DMs with the application, only for globally-scoped commands.
1161
1161
  * By default, commands are visible.
1162
1162
  */
1163
- readonly dm_permission: boolean | null | undefined;
1163
+ readonly dm_permission: boolean | undefined;
1164
1164
  /**
1165
1165
  * Returns the final data that should be sent to Discord.
1166
1166
  *
@@ -1319,7 +1319,7 @@ declare class ContextMenuCommandBuilder {
1319
1319
  * Indicates whether the command is available in DMs with the application, only for globally-scoped commands.
1320
1320
  * By default, commands are visible.
1321
1321
  */
1322
- readonly dm_permission: boolean | null | undefined;
1322
+ readonly dm_permission: boolean | undefined;
1323
1323
  /**
1324
1324
  * Sets the name
1325
1325
  *
@@ -1422,4 +1422,4 @@ declare function isEquatable(maybeEquatable: unknown): maybeEquatable is Equatab
1422
1422
 
1423
1423
  declare function embedLength(data: APIEmbed): number;
1424
1424
 
1425
- export { ActionRowBuilder, AnyAPIActionRowComponent, AnyComponentBuilder, ButtonBuilder, Assertions$4 as ComponentAssertions, ComponentBuilder, Assertions as ContextMenuCommandAssertions, ContextMenuCommandBuilder, ContextMenuCommandType, Assertions$5 as EmbedAssertions, EmbedAuthorData, EmbedAuthorOptions, EmbedBuilder, EmbedFooterData, EmbedFooterOptions, EmbedImageData, Equatable, Faces, IconData, JSONEncodable, MappedComponentTypes, MessageActionRowComponentBuilder, MessageComponentBuilder, ModalActionRowComponentBuilder, Assertions$2 as ModalAssertions, ModalBuilder, ModalComponentBuilder, RGBTuple, SelectMenuBuilder, SelectMenuOptionBuilder, Assertions$1 as SlashCommandAssertions, SlashCommandAttachmentOption, SlashCommandBooleanOption, SlashCommandBuilder, SlashCommandChannelOption, SlashCommandIntegerOption, SlashCommandMentionableOption, SlashCommandNumberOption, SlashCommandOptionsOnlyBuilder, SlashCommandRoleOption, SlashCommandStringOption, SlashCommandSubcommandBuilder, SlashCommandSubcommandGroupBuilder, SlashCommandSubcommandsOnlyBuilder, SlashCommandUserOption, Assertions$3 as TextInputAssertions, TextInputBuilder, TimestampStyles, TimestampStylesString, ToAPIApplicationCommandOptions, UnsafeButtonBuilder, UnsafeEmbedBuilder, UnsafeModalBuilder, UnsafeSelectMenuBuilder, UnsafeSelectMenuOptionBuilder, UnsafeTextInputBuilder, blockQuote, bold, channelMention, codeBlock, createComponentBuilder, embedLength, formatEmoji, hideLinkEmbed, hyperlink, inlineCode, isEquatable, isJSONEncodable, italic, quote, roleMention, spoiler, strikethrough, time, underscore, userMention };
1425
+ export { ActionRowBuilder, AnyAPIActionRowComponent, AnyComponentBuilder, ApplicationCommandNumericOptionMinMaxValueMixin, ApplicationCommandOptionAllowedChannelTypes, ApplicationCommandOptionBase, ApplicationCommandOptionChannelTypesMixin, ApplicationCommandOptionWithChoicesAndAutocompleteMixin, ButtonBuilder, Assertions$4 as ComponentAssertions, ComponentBuilder, Assertions as ContextMenuCommandAssertions, ContextMenuCommandBuilder, ContextMenuCommandType, Assertions$5 as EmbedAssertions, EmbedAuthorData, EmbedAuthorOptions, EmbedBuilder, EmbedFooterData, EmbedFooterOptions, EmbedImageData, Equatable, Faces, IconData, JSONEncodable, MappedComponentTypes, MessageActionRowComponentBuilder, MessageComponentBuilder, ModalActionRowComponentBuilder, Assertions$2 as ModalAssertions, ModalBuilder, ModalComponentBuilder, RGBTuple, SelectMenuBuilder, SelectMenuOptionBuilder, SharedNameAndDescription, SharedSlashCommandOptions, Assertions$1 as SlashCommandAssertions, SlashCommandAttachmentOption, SlashCommandBooleanOption, SlashCommandBuilder, SlashCommandChannelOption, SlashCommandIntegerOption, SlashCommandMentionableOption, SlashCommandNumberOption, SlashCommandOptionsOnlyBuilder, SlashCommandRoleOption, SlashCommandStringOption, SlashCommandSubcommandBuilder, SlashCommandSubcommandGroupBuilder, SlashCommandSubcommandsOnlyBuilder, SlashCommandUserOption, Assertions$3 as TextInputAssertions, TextInputBuilder, TimestampStyles, TimestampStylesString, ToAPIApplicationCommandOptions, UnsafeButtonBuilder, UnsafeEmbedBuilder, UnsafeModalBuilder, UnsafeSelectMenuBuilder, UnsafeSelectMenuOptionBuilder, UnsafeTextInputBuilder, blockQuote, bold, channelMention, codeBlock, createComponentBuilder, embedLength, formatEmoji, hideLinkEmbed, hyperlink, inlineCode, isEquatable, isJSONEncodable, italic, quote, roleMention, spoiler, strikethrough, time, underscore, userMention };
package/dist/index.js CHANGED
@@ -39,6 +39,10 @@ var __publicField = (obj, key, value) => {
39
39
  var src_exports = {};
40
40
  __export(src_exports, {
41
41
  ActionRowBuilder: () => ActionRowBuilder,
42
+ ApplicationCommandNumericOptionMinMaxValueMixin: () => ApplicationCommandNumericOptionMinMaxValueMixin,
43
+ ApplicationCommandOptionBase: () => ApplicationCommandOptionBase,
44
+ ApplicationCommandOptionChannelTypesMixin: () => ApplicationCommandOptionChannelTypesMixin,
45
+ ApplicationCommandOptionWithChoicesAndAutocompleteMixin: () => ApplicationCommandOptionWithChoicesAndAutocompleteMixin,
42
46
  ButtonBuilder: () => ButtonBuilder,
43
47
  ComponentAssertions: () => Assertions_exports2,
44
48
  ComponentBuilder: () => ComponentBuilder,
@@ -51,6 +55,8 @@ __export(src_exports, {
51
55
  ModalBuilder: () => ModalBuilder,
52
56
  SelectMenuBuilder: () => SelectMenuBuilder,
53
57
  SelectMenuOptionBuilder: () => SelectMenuOptionBuilder,
58
+ SharedNameAndDescription: () => SharedNameAndDescription,
59
+ SharedSlashCommandOptions: () => SharedSlashCommandOptions,
54
60
  SlashCommandAssertions: () => Assertions_exports5,
55
61
  SlashCommandAttachmentOption: () => SlashCommandAttachmentOption,
56
62
  SlashCommandBooleanOption: () => SlashCommandBooleanOption,
@@ -1614,6 +1620,10 @@ __name(embedLength, "embedLength");
1614
1620
  // Annotate the CommonJS export names for ESM import in node:
1615
1621
  0 && (module.exports = {
1616
1622
  ActionRowBuilder,
1623
+ ApplicationCommandNumericOptionMinMaxValueMixin,
1624
+ ApplicationCommandOptionBase,
1625
+ ApplicationCommandOptionChannelTypesMixin,
1626
+ ApplicationCommandOptionWithChoicesAndAutocompleteMixin,
1617
1627
  ButtonBuilder,
1618
1628
  ComponentAssertions,
1619
1629
  ComponentBuilder,
@@ -1626,6 +1636,8 @@ __name(embedLength, "embedLength");
1626
1636
  ModalBuilder,
1627
1637
  SelectMenuBuilder,
1628
1638
  SelectMenuOptionBuilder,
1639
+ SharedNameAndDescription,
1640
+ SharedSlashCommandOptions,
1629
1641
  SlashCommandAssertions,
1630
1642
  SlashCommandAttachmentOption,
1631
1643
  SlashCommandBooleanOption,