@discordjs/builders 0.6.0 → 0.8.2

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.
Files changed (81) hide show
  1. package/LICENSE +1 -0
  2. package/README.md +28 -8
  3. package/dist/index.d.ts +818 -15
  4. package/dist/index.js +4 -19
  5. package/dist/index.js.map +7 -1
  6. package/dist/index.mjs +4 -36
  7. package/dist/index.mjs.map +7 -0
  8. package/package.json +63 -51
  9. package/dist/index.d.ts.map +0 -1
  10. package/dist/interactions/slashCommands/Assertions.d.ts +0 -12
  11. package/dist/interactions/slashCommands/Assertions.d.ts.map +0 -1
  12. package/dist/interactions/slashCommands/Assertions.js +0 -63
  13. package/dist/interactions/slashCommands/Assertions.js.map +0 -1
  14. package/dist/interactions/slashCommands/SlashCommandBuilder.d.ts +0 -63
  15. package/dist/interactions/slashCommands/SlashCommandBuilder.d.ts.map +0 -1
  16. package/dist/interactions/slashCommands/SlashCommandBuilder.js +0 -113
  17. package/dist/interactions/slashCommands/SlashCommandBuilder.js.map +0 -1
  18. package/dist/interactions/slashCommands/SlashCommandSubcommands.d.ts +0 -64
  19. package/dist/interactions/slashCommands/SlashCommandSubcommands.d.ts.map +0 -1
  20. package/dist/interactions/slashCommands/SlashCommandSubcommands.js +0 -123
  21. package/dist/interactions/slashCommands/SlashCommandSubcommands.js.map +0 -1
  22. package/dist/interactions/slashCommands/mixins/CommandOptionBase.d.ts +0 -20
  23. package/dist/interactions/slashCommands/mixins/CommandOptionBase.d.ts.map +0 -1
  24. package/dist/interactions/slashCommands/mixins/CommandOptionBase.js +0 -48
  25. package/dist/interactions/slashCommands/mixins/CommandOptionBase.js.map +0 -1
  26. package/dist/interactions/slashCommands/mixins/CommandOptionWithChoices.d.ts +0 -25
  27. package/dist/interactions/slashCommands/mixins/CommandOptionWithChoices.d.ts.map +0 -1
  28. package/dist/interactions/slashCommands/mixins/CommandOptionWithChoices.js +0 -71
  29. package/dist/interactions/slashCommands/mixins/CommandOptionWithChoices.js.map +0 -1
  30. package/dist/interactions/slashCommands/mixins/CommandOptions.d.ts +0 -54
  31. package/dist/interactions/slashCommands/mixins/CommandOptions.d.ts.map +0 -1
  32. package/dist/interactions/slashCommands/mixins/CommandOptions.js +0 -91
  33. package/dist/interactions/slashCommands/mixins/CommandOptions.js.map +0 -1
  34. package/dist/interactions/slashCommands/mixins/NameAndDescription.d.ts +0 -15
  35. package/dist/interactions/slashCommands/mixins/NameAndDescription.d.ts.map +0 -1
  36. package/dist/interactions/slashCommands/mixins/NameAndDescription.js +0 -42
  37. package/dist/interactions/slashCommands/mixins/NameAndDescription.js.map +0 -1
  38. package/dist/interactions/slashCommands/options/boolean.d.ts +0 -7
  39. package/dist/interactions/slashCommands/options/boolean.d.ts.map +0 -1
  40. package/dist/interactions/slashCommands/options/boolean.js +0 -18
  41. package/dist/interactions/slashCommands/options/boolean.js.map +0 -1
  42. package/dist/interactions/slashCommands/options/channel.d.ts +0 -7
  43. package/dist/interactions/slashCommands/options/channel.d.ts.map +0 -1
  44. package/dist/interactions/slashCommands/options/channel.js +0 -18
  45. package/dist/interactions/slashCommands/options/channel.js.map +0 -1
  46. package/dist/interactions/slashCommands/options/integer.d.ts +0 -7
  47. package/dist/interactions/slashCommands/options/integer.d.ts.map +0 -1
  48. package/dist/interactions/slashCommands/options/integer.js +0 -18
  49. package/dist/interactions/slashCommands/options/integer.js.map +0 -1
  50. package/dist/interactions/slashCommands/options/mentionable.d.ts +0 -7
  51. package/dist/interactions/slashCommands/options/mentionable.d.ts.map +0 -1
  52. package/dist/interactions/slashCommands/options/mentionable.js +0 -18
  53. package/dist/interactions/slashCommands/options/mentionable.js.map +0 -1
  54. package/dist/interactions/slashCommands/options/number.d.ts +0 -7
  55. package/dist/interactions/slashCommands/options/number.d.ts.map +0 -1
  56. package/dist/interactions/slashCommands/options/number.js +0 -18
  57. package/dist/interactions/slashCommands/options/number.js.map +0 -1
  58. package/dist/interactions/slashCommands/options/role.d.ts +0 -7
  59. package/dist/interactions/slashCommands/options/role.d.ts.map +0 -1
  60. package/dist/interactions/slashCommands/options/role.js +0 -18
  61. package/dist/interactions/slashCommands/options/role.js.map +0 -1
  62. package/dist/interactions/slashCommands/options/string.d.ts +0 -7
  63. package/dist/interactions/slashCommands/options/string.d.ts.map +0 -1
  64. package/dist/interactions/slashCommands/options/string.js +0 -18
  65. package/dist/interactions/slashCommands/options/string.js.map +0 -1
  66. package/dist/interactions/slashCommands/options/user.d.ts +0 -7
  67. package/dist/interactions/slashCommands/options/user.d.ts.map +0 -1
  68. package/dist/interactions/slashCommands/options/user.js +0 -18
  69. package/dist/interactions/slashCommands/options/user.js.map +0 -1
  70. package/dist/messages/embed/Assertions.d.ts +0 -23
  71. package/dist/messages/embed/Assertions.d.ts.map +0 -1
  72. package/dist/messages/embed/Assertions.js +0 -26
  73. package/dist/messages/embed/Assertions.js.map +0 -1
  74. package/dist/messages/embed/Embed.d.ts +0 -140
  75. package/dist/messages/embed/Embed.d.ts.map +0 -1
  76. package/dist/messages/embed/Embed.js +0 -300
  77. package/dist/messages/embed/Embed.js.map +0 -1
  78. package/dist/messages/formatters.d.ts +0 -198
  79. package/dist/messages/formatters.d.ts.map +0 -1
  80. package/dist/messages/formatters.js +0 -181
  81. package/dist/messages/formatters.js.map +0 -1
package/LICENSE CHANGED
@@ -175,6 +175,7 @@
175
175
 
176
176
  END OF TERMS AND CONDITIONS
177
177
 
178
+ Copyright 2021 Noel Buechler
178
179
  Copyright 2021 Vlad Frangu
179
180
 
180
181
  Licensed under the Apache License, Version 2.0 (the "License");
package/README.md CHANGED
@@ -6,28 +6,48 @@
6
6
  <br />
7
7
  <p>
8
8
  <a href="https://discord.gg/djs"><img src="https://img.shields.io/discord/222078108977594368?color=5865F2&logo=discord&logoColor=white" alt="Discord server" /></a>
9
- <a href="https://github.com/discordjs/builders/actions"><img src="https://github.com/discordjs/builders/workflows/Tests/badge.svg" alt="Test status" /></a>
10
- <a href="https://github.com/discordjs/builders/actions"><img src="https://github.com/discordjs/builders/workflows/Lint/badge.svg" alt="Lint status" /></a>
9
+ <a href="https://www.npmjs.com/package/@discordjs/builders"><img src="https://img.shields.io/npm/v/@discordjs/builders.svg?maxAge=3600" alt="NPM version" /></a>
10
+ <a href="https://www.npmjs.com/package/@discordjs/builders"><img src="https://img.shields.io/npm/dt/@discordjs/builders.svg?maxAge=3600" alt="NPM downloads" /></a>
11
+ <a href="https://github.com/discordjs/builders/actions"><img src="https://github.com/discordjs/builders/workflows/Tests/badge.svg" alt="Build status" /></a>
11
12
  <a href="https://codecov.io/gh/discordjs/builders"><img src="https://codecov.io/gh/discordjs/builders/branch/main/graph/badge.svg" alt="Code coverage" /></a>
12
13
  </p>
13
14
  </div>
14
15
 
15
16
  ## Installation
16
17
 
17
- Install with [npm](https://www.npmjs.com/) / [yarn](https://yarnpkg.com) / [pnpm](https://pnpm.js.org/):
18
+ **Node.js 16.6.0 or newer is required.**
18
19
 
19
- ```sh
20
+ ```sh-session
20
21
  npm install @discordjs/builders
21
22
  yarn add @discordjs/builders
22
23
  pnpm add @discordjs/builders
23
24
  ```
24
25
 
25
- ## Contribution
26
-
27
- See [Contributing Guide](https://github.com/discordjs/builders/blob/main/.github/CONTRIBUTING.md).
28
-
29
26
  ## Examples
30
27
 
31
28
  Here are some examples for the builders and utilities you can find in this package:
32
29
 
33
30
  - [Slash Command Builders](./docs/examples/Slash%20Command%20Builders.md)
31
+
32
+ ## Links
33
+
34
+ - [Website](https://discord.js.org/) ([source](https://github.com/discordjs/website))
35
+ - [Documentation](https://discord.js.org/#/docs/builders)
36
+ - [Guide](https://discordjs.guide/) ([source](https://github.com/discordjs/guide))
37
+ See also the [Update Guide](https://discordjs.guide/additional-info/changes-in-v13.html), including updated and removed items in the library.
38
+ - [discord.js Discord server](https://discord.gg/djs)
39
+ - [Discord API Discord server](https://discord.gg/discord-api)
40
+ - [GitHub](https://github.com/discordjs/builders)
41
+ - [NPM](https://www.npmjs.com/package/@discordjs/builders)
42
+ - [Related libraries](https://discord.com/developers/docs/topics/community-resources#libraries)
43
+
44
+ ## Contributing
45
+
46
+ Before creating an issue, please ensure that it hasn't already been reported/suggested, and double-check the
47
+ [documentation](https://discord.js.org/#/docs/builders).
48
+ See [the contribution guide](https://github.com/discordjs/builders/blob/main/.github/CONTRIBUTING.md) if you'd like to submit a PR.
49
+
50
+ ## Help
51
+
52
+ If you don't understand something in the documentation, you are experiencing problems, or you just need a gentle
53
+ nudge in the right direction, please don't hesitate to join our official [discord.js Server](https://discord.gg/djs).