79515264

Date: 2025-03-17 17:06:02
Score: 0.5
Natty:
Report link

Have you at any point registered the commands as global commands? If so, you may have a global command AND a local command both showing up in your server, because Discord treats them as separate. (I believe this is intended to make testing easier so you can test new commands in a private dev server before pushing test commands globally: Global command documentation)

I tested some of the code and it's working as expected for me - I don't see anything wrong there, unless you've got duplicates in your command files somewhere.

I'd recommend trying to clear the global commands and see if that gets rid of the duplicates:

await client.application.commands.set([]);

Good luck!

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: neartsua