mirror of
https://github.com/brandons209/Red-bot-Cogs.git
synced 2024-05-19 03:42:33 +12:00
white
This commit is contained in:
parent
755f732635
commit
5ec35fb447
|
@ -18,6 +18,7 @@ __cogname__ = "aurelia.cogs.roletracker"
|
|||
# 0 is reason, 1 is role object, 2 is extra msg
|
||||
REASON_MSG = "{0}\n**Role:**{1.mention} (name: {1.name}, id: {1.id})\n{2}"
|
||||
|
||||
|
||||
class RoleTracker(commands.Cog):
|
||||
def __init__(self, bot):
|
||||
super().__init__()
|
||||
|
@ -220,7 +221,9 @@ class RoleTracker(commands.Cog):
|
|||
|
||||
for role in added:
|
||||
role_dict = await self.config.role(role).all()
|
||||
if role_dict["addable"] and not (role_dict["USERS"].get(str(before.id), None) or user == before.guild.me):
|
||||
if role_dict["addable"] and not (
|
||||
role_dict["USERS"].get(str(before.id), None) or user == before.guild.me
|
||||
):
|
||||
data = role_dict["USERS"]
|
||||
|
||||
case = await modlog.create_case(
|
||||
|
|
Loading…
Reference in a new issue