Adding back check cause I'm dumb dumb

pull/8/head
sgoudham 4 years ago
parent 510cd38f46
commit 254e2da8b0

@ -567,6 +567,7 @@ class Moderation(Cog):
new_roles = [roles for roles in after.roles if roles not in before.roles] new_roles = [roles for roles in after.roles if roles not in before.roles]
old_roles = [roles for roles in before.roles if roles not in after.roles] old_roles = [roles for roles in before.roles if roles not in after.roles]
if len(new_roles) >= 1:
new_roles_string = ", ".join(f"`{r.name}`" for r in new_roles) new_roles_string = ", ".join(f"`{r.name}`" for r in new_roles)
if len(new_roles) == 1: if len(new_roles) == 1:
@ -583,6 +584,7 @@ class Moderation(Cog):
await modlogs_channel.send(embed=embed) await modlogs_channel.send(embed=embed)
if len(old_roles) >= 1:
old_roles_string = ", ".join(r.name for r in old_roles) old_roles_string = ", ".join(r.name for r in old_roles)
if len(old_roles) == 1: if len(old_roles) == 1:

Loading…
Cancel
Save