Finish the addrole/removerole commands and surrounding functionality #24

Merged
cswimr merged 22 commits from addrole into main 2024-05-03 21:46:14 -04:00
Showing only changes of commit f9e807957f - Show all commits

View file

@ -1702,7 +1702,7 @@ class Aurora(commands.Cog):
role = guild.get_role(role_id)
if role is None:
raise discord.errors.NotFound
continue
await member.remove_roles(
role, reason=f"Automatic role removal from case #{moderation_id}"
@ -1732,7 +1732,7 @@ class Aurora(commands.Cog):
role = guild.get_role(role_id)
if role is None:
raise discord.errors.NotFound
continue
await member.add_roles(
role, reason=f"Automatic role addition from case #{moderation_id}"