#Error registering application command

1 messages · Page 1 of 1 (latest)

last copper
#
Traceback (most recent call last):
  File "/Users/enriquebos/PycharmProjects/dispy-lin/main.py", line 40, in register_commands
    await bot.rest.set_application_commands(
  File "/Users/enriquebos/PycharmProjects/dispy-lin/venv/lib/python3.10/site-packages/hikari/impl/rest.py", line 3761, in set_application_commands
    response = await self._request(route, json=[command.build(self._entity_factory) for command in commands])
  File "/Users/enriquebos/PycharmProjects/dispy-lin/venv/lib/python3.10/site-packages/hikari/impl/rest.py", line 712, in _request
    await aio.first_completed(request_task, self._close_event.wait())
  File "/Users/enriquebos/PycharmProjects/dispy-lin/venv/lib/python3.10/site-packages/hikari/internal/aio.py", line 138, in first_completed
    await next(iterator)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/asyncio/tasks.py", line 571, in _wait_for_one
    return f.result()  # May raise f.exception().
  File "/Users/enriquebos/PycharmProjects/dispy-lin/venv/lib/python3.10/site-packages/hikari/impl/rest.py", line 852, in _perform_request
    raise await net.generate_error_response(response)
hikari.errors.ForbiddenError: Forbidden 403: (50001) 'Missing Access' for https://discord.com/api/v10/applications/1070247718506741800/guilds/934896901256515714/commands
#

I enabled the scopes bot and applications.command with these Intents Intents.GUILD_INTEGRATIONS | Intents.GUILD_MESSAGE_TYPING | Intents.GUILD_PRESENCES | Intents.GUILD_VOICE_STATES

Inside the Privileged Gateway Intents I only got presence enabled.