Slash commands failing to register

I deleted my dist folder because I wanted to 'refresh' the compiled code, and right after I noticed that only 2 of my commands are registering now, them being escalation-manager and shortcut-manager. I don't get what went wrong since it was working fine earlier but maybe someone can shine some light into this?
Solution:
I fixed it by just merging message commands with slash commands
Jump to solution
8 Replies
dan
danOP5mo ago
No description
dan
danOP5mo ago
This is the structure of my command folder
No description
dan
danOP5mo ago
Both /escalation-manager and /shortcut-manager work while none of the other commands do Changing the file name seems to have fixed it, tho Idk If i'd call that a solution since I had to add "slash" in every file
Favna
Favna5mo ago
are you compiling with tsc and if so whats your tsconfig and is there a file called tsconfig.tsbuildinfo in the root of your project?
dan
danOP5mo ago
Yes, no tsbuildinfo, and tsconfig is this:
No description
Solution
dan
dan5mo ago
I fixed it by just merging message commands with slash commands
dan
danOP5mo ago
They're both in one file now I'll keep it like this since it tends to work fine
Favna
Favna4mo ago
If they had the same file name or same name in options then the problem was that they made conflicting entries in the command store which requires unique keys as it's a Map
Want results from more Discord servers?
Add your server