Merge branch 'rolegiver_patch' into 'main'

Loop through roles to append to user

See merge request stark-industries/j.a.r.v.i.s.!41
This commit is contained in:
Zeva Rose 2022-02-02 21:35:23 +00:00
commit ff34e86a50

View file

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