#Missing Access with sync_commands

1 messages · Page 1 of 1 (latest)

crude egret
#

What permissions should the bot have to prevent this error from appearing?

Traceback (most recent call last):
  File "*/__main__.py", line 68, in vote_sync
    await self.sync_commands(check_guilds = [check_guild])
  File "*/lib/python3.10/site-packages/discord/bot.py", line 647, in sync_commands
    registered_guild_commands[guild_id] = await self.register_commands(
  File "*/lib/python3.10/site-packages/discord/bot.py", line 476, in register_commands
    prefetched_commands = await self.http.get_guild_commands(self.user.id, guild_id)
  File "*/lib/python3.10/site-packages/discord/http.py", line 353, in request
    raise Forbidden(response, data)
discord.errors.Forbidden: 403 Forbidden (error code: 50001): Missing Access

The error appears when trying to sync commands for a specific guild.

ocean linden
#

reinvite bot for that guild

crude egret
#

ok

#

The error appears on time, I'll wait a day.

ocean linden
crude egret
#

Didn't check

crude egret
#

So, a day later, the error is the same.

#

I bypass the error with several attempts to sync

#

403 Forbidden (error code 50001) Missing Access with sync_commands

#

Also checked on several servers.

lost gale
#

You may need to grant Use slash commands permissions

crude egret
#

Okay, I'll try. I'll be back in a day.

crude egret
thin pasture
#

Sole guild is missing application.commands

crude egret
#

Is there a way to check if there is an application.commands?

thin pasture
#

Uh, no that I'm aware of

crude egret
#

I started the test. I created a separate bot and added it to the server with all rights, I'll check it now

crude egret
#

An error still appears.

crude egret
#

A bot instance, maybe there is something wrong here?

bot = Rimuru( # class Rimuru(AutoShardedBot): ...
        owner_id = 655426922561404958, 
        auto_sync_commands = False, 
        shard_count = 1, 
        intents = Intents(
            message_content = True,
            members = True,
            messages = True,
            # invites = True,
            voice_states = True,
            presences = True, 
            guilds = True, 
            # bans = True,
        )
    )
kindred breach
#

having the same error, did you find a fix?

crude egret
#

And it worked for me, I haven't gotten this error for 3 days now.

crude egret
#

The problem returns! After updating to 2.1.1, the problem appeared again.