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?
8 Replies
This is the structure of my command folder
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
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?Yes, no tsbuildinfo, and tsconfig is this:
Solution
I fixed it by just merging message commands with slash commands
They're both in one file now
I'll keep it like this since it tends to work fine
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