Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Error when giving somebody a role #16

Open
ItsShunya opened this issue Oct 31, 2020 · 3 comments
Open

[BUG] Error when giving somebody a role #16

ItsShunya opened this issue Oct 31, 2020 · 3 comments
Assignees
Labels
BUG Something isn't working

Comments

@ItsShunya
Copy link
Owner

When you try to give somebody a role (for example welcome role) that is higher than the bot's role, it will display a message.

@ItsShunya ItsShunya added the BUG Something isn't working label Oct 31, 2020
@ItsShunya ItsShunya self-assigned this Oct 31, 2020
@ItsShunya
Copy link
Owner Author

Confirmed this same error happens on adding reaction roles.

@ItsShunya ItsShunya changed the title Error when giving somebody a role [BUG] Error when giving somebody a role Jan 18, 2021
@ItsShunya
Copy link
Owner Author

Found full traceback error:

Ignoring exception in on_member_join
Traceback (most recent call last):
File "C:\Users\luque.virtualenvs\Shuwy-HYdT1WkZ\lib\site-packages\discord\client.py", line 333, in _run_event
await coro(*args, **kwargs)
File "D:\Projects\Shuwy Discord Bot\Shuwy\Shuwy\cogs\Members.py", line 179, in on_member_join
await member.add_roles(role)
File "C:\Users\luque.virtualenvs\Shuwy-HYdT1WkZ\lib\site-packages\discord\member.py", line 664, in add_roles
await req(guild_id, user_id, role.id, reason=reason)
File "C:\Users\luque.virtualenvs\Shuwy-HYdT1WkZ\lib\site-packages\discord\http.py", line 241, in request
raise Forbidden(r, data)
discord.errors.Forbidden: 403 Forbidden (error code: 50013): Missing Permissions

@ItsShunya
Copy link
Owner Author

This issue can't be solved but we can add an error handling to display a message when this happens. Problem should be adressed to the server's admin to raise the bot permissions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant