Skip to content

Registering Slash Commands #1139

Answered by WiseDevHelper
nimimon asked this question in Q&A
Discussion options

You must be logged in to vote

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:

client.on('interactionCreate', async interaction => {
if (!interaction.isCommand()) return;
const { commandName } = interaction;
if (commandName === 'balance') {
const target = interaction.options.getUser('user') || interaction.u…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by almostSouji
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #858 on May 27, 2022 15:35.