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:
commit
ff34e86a50
1 changed files with 3 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue