Registering Slash Commands #1139
-
I'm trying to use this (https://discordjs.guide/interactions/registering-slash-commands.html#guild-commands)
(please let me know if this isnt even the right piece of code i should be starting off with) since the currency system uses models instead of commands (sorry if this sounds completely stupid, im new to coding), i keep on getting errors about how it cant find |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The The currency system uses models, which basically define the structure of your database. This system does use slash commands as you can see here: guide/code-samples/sequelize/currency/13/app.js Lines 46 to 99 in 178f820 I'd recommend you to either register them manually or use the I'll look into adding deploy scripts for all subsections of the guide later. |
Beta Was this translation helpful? Give feedback.
The
deploy-commands.js
script is to be used to deploy your slash commands and is to be a separate file that you use only when you want to deploy slash commands. You can read more about registering them here.The currency system uses models, which basically define the structure of your database. This system does use slash commands as you can see here:
guide/code-samples/sequelize/currency/13/app.js
Lines 46 to 99 in 178f820