#Missing Access

1 messages · Page 1 of 1 (latest)

teal wharf
#

?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

bleak zodiac
#

?tag forbidden

crimson carbonBOT
#

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.

teal wharf
bleak zodiac
#

are you setting guild_ids?

teal wharf
bleak zodiac
#

and you're 100% sure your bot is in every guild id listed?

#

and has the scope in every one?

teal wharf
#

this is a private bot i use only on my own server.

bleak zodiac
#

well the error's only thrown if the bot doesn't have permissions to register the command

#

so something's wrong on your end

teal wharf
#

why would it only not have permissions for only one of the commands?

#

every other command is here and they work

bleak zodiac
#

maybe you hit a command limit?

teal wharf
#

i didnt know that existed

#

probably yes

#

how can i overcome this?

bleak zodiac
#

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

teal wharf
#

i have 16 app commands, including the last one i added

bleak zodiac
#

100, 5 and 5

#

what are the types of all of them?

#

between slash, user and message

teal wharf
#

i only counted the slash commands

bleak zodiac
#

you haven't made any others?

teal wharf
#

i dont understand what you mean by user and message commands

bleak zodiac
#

they're context menu commands that appear in the Apps section when your right click a message or user

teal wharf
#

oh, i dont have any of those. i just have slash commands

bleak zodiac
#

hm

teal wharf
#

the error is

discord.errors.Forbidden: 403 Forbidden (error code: 50001): Missing Access

bleak zodiac
#

what if you just name the new command something else

teal wharf
bleak zodiac
#

as far as we're aware, missing access is literally your bot missing permissions to register it

teal wharf
#

when i removed the last command i added it didnt throw the error though

bleak zodiac
#

maybe you hit the daily registration limit?

teal wharf
#

this started happening after i added 2 new commands to the bot

teal wharf
#

we would have to wait and see

bleak zodiac
#

you can register commands 200 times per day per guild

teal wharf
#

i dont think i hit that limit then

#

the limit is too high to hit

forest prairie
#

I only experienced this error when I wasn't in 2.0.0rc1

#

What's your pycord version?