#Missing Access
1 messages · Page 1 of 1 (latest)
?replit
?tag replit
Ignoring exception in on_connect
Traceback (most recent call last):
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py", line 382, in _run_event
await coro(*args, **kwargs)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/bot.py", line 1041, in on_connect
await self.sync_commands()
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/bot.py", line 643, in sync_commands
registered_guild_commands[guild_id] = await self.register_commands(
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/bot.py", line 472, in register_commands
prefetched_commands = await self.http.get_guild_commands(self.user.id, guild_id)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/http.py", line 354, in request
raise Forbidden(response, data)
discord.errors.Forbidden: 403 Forbidden (error code: 50001): Missing Access
?tag forbidden
You get a 403 Forbidden (error code: 50001): Missing Access as error?
You might've added your bot in the past without the applications.commands scope.
What to do?
Old way: Re-add the bot with the applications.commands scope.
New way: Since 11/07/2022 discord automatically includes the applications.commands scope in OAuth. You just need to re-add the bot with the bot scope. See [#discord-api-updates@996103073111998544](#discord-api-updates message) for more infos.
doesn't work. when i remove the last command i added it doesn't give the error. when i re-add it it gives the error.
are you setting guild_ids?
yes.
and you're 100% sure your bot is in every guild id listed?
and has the scope in every one?
this is a private bot i use only on my own server.
well the error's only thrown if the bot doesn't have permissions to register the command
so something's wrong on your end
why would it only not have permissions for only one of the commands?
every other command is here and they work
maybe you hit a command limit?
how many of each type of app command do you have
well you dont
limits are separate for slash, user context and message context commands
i think it's 50, 5 and 5? might need to double check
i have 16 app commands, including the last one i added
i only counted the slash commands
you haven't made any others?
i dont understand what you mean by user and message commands
they're context menu commands that appear in the Apps section when your right click a message or user
oh, i dont have any of those. i just have slash commands
hm
the error is
discord.errors.Forbidden: 403 Forbidden (error code: 50001): Missing Access
what if you just name the new command something else
tried that before, nothing changes
as far as we're aware, missing access is literally your bot missing permissions to register it
when i removed the last command i added it didnt throw the error though
maybe you hit the daily registration limit?
this started happening after i added 2 new commands to the bot
that might be true
we would have to wait and see
you can register commands 200 times per day per guild