Fix re-adding roles bug

pull/152/head
bobloy 4 years ago
parent 5611f7abe7
commit d71e3afb86

@ -235,8 +235,8 @@ class Timerole(Cog):
has_roles = set(r.id for r in member.roles) has_roles = set(r.id for r in member.roles)
# Stop if they currently have or don't have the role, and mark had_role # Stop if they currently have or don't have the role, and mark had_role
if (role_id in has_roles and not role_data["remove"]) or ( if (int(role_id) in has_roles and not role_data["remove"]) or (
role_id not in has_roles and role_data["remove"] int(role_id) not in has_roles and role_data["remove"]
): ):
if not mr_dict["had_role"]: if not mr_dict["had_role"]:
await self.config.custom( await self.config.custom(

Loading…
Cancel
Save