Loop through roles to append to user
This commit is contained in:
parent
748bda1c73
commit
43f6a90d01
1 changed files with 3 additions and 3 deletions
|
@ -247,8 +247,8 @@ class RolegiverCog(commands.Cog):
|
|||
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")
|
||||
|
||||
roles = ctx.author.roles
|
||||
|
|
Loading…
Add table
Reference in a new issue