#cannot create slash commands in a guild create by the bot

14 messages · Page 1 of 1 (latest)

kindred sleet
#

The title say all... i have the error DiscordAPIError[50001]: Missing Access when the bot try to add slash commands... in a server create by the bot itself

lofty totemBOT
#

• 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.

open scroll
#

You mean slash commands aren't deployed to a new guild?

kindred sleet
#

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()

cursive wigeon
#

yeah, besides giving yourself owner and reinviting the bot there isnt much you can do about that

kindred sleet
#

Ok... it possible to give ownership to the bot after that ?

cursive wigeon
#

nope

#

once transferred the bot cant be owner again

kindred sleet
#

Ok... ty

cursive wigeon
#

you might wanna bring this up on the ddevs server, maybe they have more intel on this

kindred sleet
#

Okay, i will check that. Thanks for your time

night whale
#

@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.