Duplicated Application Commands

A few commands are duplicated even tho I've only put them once in the code.
22 Replies
d.js toolkit
d.js toolkitβ€’10mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
d.js docs
d.js docsβ€’10mo ago
Tag suggestion for @_xheg: If you have duplicate commands on your server, you registered both global and guild commands. You can remove the duplicates by resetting either the global or guild commands - Resetting global commands: rest.put(Routes.applicationCommands(clientId), { body: [] }) - Resetting guild commands: rest.put(Routes.applicationGuildCommands(clientId, guildId), { body: [] })
xHeg
xHegβ€’10mo ago
do i put it in the beginning? how do i even set it up
treble/luna
treble/lunaβ€’10mo ago
pass in an empty array also tag your post properly as you use v13
xHeg
xHegβ€’10mo ago
i'm using v14
xHeg
xHegβ€’10mo ago
treble/luna
treble/lunaβ€’10mo ago
your code is v13
xHeg
xHegβ€’10mo ago
oh didn't know sorry
treble/luna
treble/lunaβ€’10mo ago
also why do you have 2 interactionCreate listeners
d.js docs
d.js docsβ€’10mo ago
guide Creating Your Bot: Event handling read more
xHeg
xHegβ€’10mo ago
i used chatgpt for this part πŸ’€ dw
treble/luna
treble/lunaβ€’10mo ago
please dont ever use chatgpt
xHeg
xHegβ€’10mo ago
y
treble/luna
treble/lunaβ€’10mo ago
because thats what you'll get
xHeg
xHegβ€’10mo ago
ye true
treble/luna
treble/lunaβ€’10mo ago
outdated code and incorrect code
xHeg
xHegβ€’10mo ago
yeah
invictus
invictusβ€’10mo ago
Using it is fine. But don't just blindly copy whatever it says.
treble/luna
treble/lunaβ€’10mo ago
No. It uses outdated data
invictus
invictusβ€’10mo ago
Yes for djs. The latest there is v13. For the others, not all are outdated. Sometimes things stayed that way till now. That's why you need to recheck what ChatGPT tells you. It doesn't mean you can't use it entirely.
treble/luna
treble/lunaβ€’10mo ago
I'm talking about using it for djs
invictus
invictusβ€’10mo ago
Fair point