From bce682514d35dc0b15f7bb3583ccc33791888462 Mon Sep 17 00:00:00 2001
From: p08dev
Date: Tue, 11 Mar 2025 21:55:06 +0100
Subject: [PATCH] indentation
---
exclusiveroles/exclusiveroles.py | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/exclusiveroles/exclusiveroles.py b/exclusiveroles/exclusiveroles.py
index ecf0f29..8937fc9 100644
--- a/exclusiveroles/exclusiveroles.py
+++ b/exclusiveroles/exclusiveroles.py
@@ -23,7 +23,7 @@ class ExclusiveRoles(Cog):
return
@commands.guild_only()
- @commands.group(aliases=["exclusiverole"])
+ @commands.group(aliases=["exclusiveroles"])
async def exclusive(self, ctx):
"""Base command for managing exclusive roles"""
@@ -102,15 +102,15 @@ class ExclusiveRoles(Cog):
await asyncio.sleep(1)
- role_set = set(await self.config.guild(after.guild).role_list())
- new_exclusive_roles = [role for role in after.roles if role.id in role_set]
+ role_set = set(await self.config.guild(after.guild).role_list())
+ new_exclusive_roles = [role for role in after.roles if role.id in role_set]
- if len(new_exclusive_roles) > 1:
- added_roles = [role for role in new_exclusive_roles if role not in before.roles]
- keep_role = added_roles[-1] if added_roles else new_exclusive_roles[-1]
- roles_to_remove = [role for role in new_exclusive_roles if role != keep_role]
+ if len(new_exclusive_roles) > 1:
+ added_roles = [role for role in new_exclusive_roles if role not in before.roles]
+ keep_role = added_roles[-1] if added_roles else new_exclusive_roles[-1]
+ roles_to_remove = [role for role in new_exclusive_roles if role != keep_role]
- try:
- await after.remove_roles(*roles_to_remove)
- except discord.Forbidden:
- pass
\ No newline at end of file
+ try:
+ await after.remove_roles(*roles_to_remove)
+ except discord.Forbidden:
+ pass
\ No newline at end of file