'discord.errors.Forbidden: 403 Forbidden (error code: 50013): Missing Permissions error for setting up roles
I am trying to setup roles for my discord bot but keep getting this error:
discord.errors.Forbidden: 403 Forbidden (error code: 50013)
My Code:
@client.event
async def on_member_join(member):
guild = client.get_guild(688568885968109756)
role = discord.utils.get(member.guild.roles, id=689916456871133311)
await member.add_roles(role)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
