Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commands Won't Register #76

Open
RohanDaCoder opened this issue Jul 3, 2024 · 3 comments
Open

Commands Won't Register #76

RohanDaCoder opened this issue Jul 3, 2024 · 3 comments

Comments

@RohanDaCoder
Copy link

My new commands stopped being registering.
Old commands work if ran.
My bulk register option is set to true in my commandkit config (if that helps)

It doesn't even show the loaded commands console log..
✅ Loaded 3 developer commands in guild "Lean Development".
✅ Loaded 80 global commands.

Those messages don't even show.
It works on my machine but when i upload the code to my server to run on the production bot, it doesnt work..

My discord: rohan_ohio

@zwolinskidominik
Copy link

zwolinskidominik commented Jul 16, 2024

Try to clear commands in your index.js

const { REST, Routes } = require('discord.js')

const rest = new REST({ version: "10" }).setToken(TOKEN);

console.log("Clearing commands...");

rest
  .put(Routes.applicationCommands(CLIENT_ID), { body: [] })
  .then(() => console.log("Commands cleared."))
  .catch(console.error);

And second solution is changing your bulkRegister to false.

@RohanDaCoder
Copy link
Author

i did set the bulk register off,
It still doesn't work...
but then i registered the commands manually just like commandkit (client.application.commands.set()) and it seemed to work...

So i will stop using commandkit....
I am tired of fixing this issue

@zwolinskidominik
Copy link

Did you have new commands in the same directory as you set in your CommandKit instance "commandsPath: 'path/to/cmds'"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants