need help trying to fix discord api error 405
ive been trying to setup a discord bot and i keep getting Aapi error 405 can someone plz help
7 Replies
- 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!
- ✅
Marked as resolved by OPive been trying to run "node src/register-commands.js" and i get "There Was An Error: DiscordAPIError[0]: 405: Method Not Allowed" and ive searched around and i get nothing helpful just people with the same issue
can you show your code in
register-commands.js
?wrong
Route
. You need to use applicationGuildCommands
as explained in these 2 posts after quickly searching for it https://discord.com/channels/222078108977594368/1201243186740334763
https://discord.com/channels/222078108977594368/1161736022611210311it worked
thank you