Loop through roles to append to user

This commit is contained in:
Zeva Rose 2022-02-02 14:34:59 -07:00
parent 748bda1c73
commit 43f6a90d01

View file

@ -247,9 +247,9 @@ class RolegiverCog(commands.Cog):
timeout=60 * 5, timeout=60 * 5,
) )
role = ctx.guild.get_role(context.selected_options[0]) for role in context.selected_options:
role = ctx.guild.get_role(int(role))
await ctx.author.add_roles(role, reason="Rolegiver") await ctx.author.add_roles(role, reason="Rolegiver")
roles = ctx.author.roles roles = ctx.author.roles
if roles: if roles: