intents = disnake.Intents.all()
intents.voice_states = True
intents.messages = True
await member.add_roles(role)
Валится с ошибкой о том, что не достаточно прав:
Ignoring exception in on_button_click
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\disnake\client.py", line 703, in _run_event
await coro(*args, **kwargs)
File "C:\Users\user\Desktop\Discord-Bot\main.py", line 231, in on_button_click
await member.add_roles(role)
File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\disnake\member.py", line 1034, in add_roles
await req(guild_id, user_id, role.id, reason=reason)
File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\disnake\http.py", line 409, in request
raise Forbidden(response, data)
disnake.errors.Forbidden: 403 Forbidden (error code: 50013): Missing Permissions
Хотя бота приглашал на сервер с правами администратора
UPD 16.08.23: Вопрос еще не решен :с