Fix re-adding roles bug
This commit is contained in:
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…
x
Reference in New Issue
Block a user