Skip to content

Commit

Permalink
Fix add_roles taking a role and not a list
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinJadoul committed Mar 1, 2021
1 parent f917a44 commit 9791547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@ async def process_reaction(callback, message_id, guild, emoji):
async def add_verified_role(bot, user_id):
guild = bot.get_guild(config.user_verification.guild_id)
member = await(guild.fetch_member(user_id))
await member.add_roles([r for r in guild.roles if r.name == config.user_verification.role])
await member.add_roles([r for r in guild.roles if r.name == config.user_verification.role][0])

0 comments on commit 9791547

Please sign in to comment.