#cannot create slash commands in a guild create by the bot
14 messages · Page 1 of 1 (latest)
• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.
You mean slash commands aren't deployed to a new guild?
Nope. I think it because i dont check "application.commands"... but i just cannot do that...
The guild was create with the commande client.guilds.create()
yeah, besides giving yourself owner and reinviting the bot there isnt much you can do about that
Ok... it possible to give ownership to the bot after that ?
Ok... ty
you might wanna bring this up on the ddevs server, maybe they have more intel on this
Okay, i will check that. Thanks for your time
@kindred sleet You don't need to give up ownership of the server -- if you join the bot's server and have it grant you a role with the "manage guild" permission, you can then re-invite the bot to its own server with the "application.commands" scope. It will then be allowed to update commands, and you can safely exit the server.
this little edge case had me pulling out my hair for a minute as well. it's an unfortunately manual process, but it gets the job done.