From 43f6a90d0161263d403e21a5829c86da49d404ac Mon Sep 17 00:00:00 2001 From: Zevaryx Date: Wed, 2 Feb 2022 14:34:59 -0700 Subject: [PATCH] Loop through roles to append to user --- jarvis/cogs/rolegiver.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jarvis/cogs/rolegiver.py b/jarvis/cogs/rolegiver.py index 7ff0f4a..4568594 100644 --- a/jarvis/cogs/rolegiver.py +++ b/jarvis/cogs/rolegiver.py @@ -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: