You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_**NOTE: version 2.x of this library supports discord.js v14. If you still need
8
+
v13 support, use an older 1.x version of this library.**_
9
+
7
10
This is a data structure that lets you define Discord.js slash commands,
8
11
register them with Discord's API, and route Discord.js Interaction events to
9
12
your handler for that command.
10
13
11
14
Currently Discord.js separates slash command creation into three different,
12
15
weirdly disjoined processes. They want you to:
13
-
1.[Define your commands with a builder](https://github.com/discordjs/builders/blob/main/docs/examples/Slash%20Command%20Builders.md),
16
+
1.[Define your commands with a builder](https://github.com/discordjs/discord.js/tree/main/packages/builders),
14
17
which is only used to construct the data of an HTTP call.
15
-
1.[Deploy them with a separate HTTP PUT call](https://discordjs.guide/creating-your-bot/creating-commands.html#command-deployment-script),
18
+
1.[Deploy them with a separate HTTP PUT call](https://discordjs.guide/creating-your-bot/command-deployment.html#guild-commands),
16
19
which uses an entirely separate library that directly relies on the Discord API
17
-
1.[Set up a fairly complicated file structure for each command](https://github.com/discordjs/builders/blob/main/docs/examples/Slash%20Command%20Builders.md),
20
+
1.[Set up a fairly complicated file structure for each command](https://discordjs.guide/creating-your-bot/slash-commands.html),
18
21
which still requires you to write your own router and juggle your own handlers
19
22
20
23
This library simplifies this process by letting you do this all in one place.
@@ -202,29 +205,23 @@ const commands = new SlashCommandRegistry()
202
205
);
203
206
```
204
207
205
-
## Other stuff from `@discordjs/builders`
208
+
## Helpers
206
209
207
210
The Discord.js builders package [has a lot of neat
208
-
helper functions](https://discordjs.guide/popular-topics/builders.html). The
209
-
command registry passes all of these functions through, so they can be included
210
-
directly (preventing the need to add / import `@discordjs/builders`).
0 commit comments