Finish the addrole/removerole commands and surrounding functionality #24
1 changed files with 2 additions and 2 deletions
|
@ -1702,7 +1702,7 @@ class Aurora(commands.Cog):
|
||||||
|
|
||||||
role = guild.get_role(role_id)
|
role = guild.get_role(role_id)
|
||||||
if role is None:
|
if role is None:
|
||||||
raise discord.errors.NotFound
|
continue
|
||||||
|
|
||||||
await member.remove_roles(
|
await member.remove_roles(
|
||||||
role, reason=f"Automatic role removal from case #{moderation_id}"
|
role, reason=f"Automatic role removal from case #{moderation_id}"
|
||||||
|
@ -1732,7 +1732,7 @@ class Aurora(commands.Cog):
|
||||||
|
|
||||||
role = guild.get_role(role_id)
|
role = guild.get_role(role_id)
|
||||||
if role is None:
|
if role is None:
|
||||||
raise discord.errors.NotFound
|
continue
|
||||||
|
|
||||||
await member.add_roles(
|
await member.add_roles(
|
||||||
role, reason=f"Automatic role addition from case #{moderation_id}"
|
role, reason=f"Automatic role addition from case #{moderation_id}"
|
||||||
|
|
Loading…
Reference in a new issue