|
|
@ -295,9 +295,12 @@ class Timerole(Cog):
|
|
|
|
log.exception("Failed Adding Roles")
|
|
|
|
log.exception("Failed Adding Roles")
|
|
|
|
add_results += f"{member.display_name} : **(Failed Adding Roles)**\n"
|
|
|
|
add_results += f"{member.display_name} : **(Failed Adding Roles)**\n"
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
add_results += " \n".join(
|
|
|
|
add_results += (
|
|
|
|
|
|
|
|
" \n".join(
|
|
|
|
f"{member.display_name} : {role.name}" for role in add_roles
|
|
|
|
f"{member.display_name} : {role.name}" for role in add_roles
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
+ "\n"
|
|
|
|
|
|
|
|
)
|
|
|
|
for role_id in addlist:
|
|
|
|
for role_id in addlist:
|
|
|
|
await self.config.custom(
|
|
|
|
await self.config.custom(
|
|
|
|
"RoleMember", role_id, member.id
|
|
|
|
"RoleMember", role_id, member.id
|
|
|
@ -310,9 +313,12 @@ class Timerole(Cog):
|
|
|
|
log.exception("Failed Removing Roles")
|
|
|
|
log.exception("Failed Removing Roles")
|
|
|
|
remove_results += f"{member.display_name} : **(Failed Removing Roles)**\n"
|
|
|
|
remove_results += f"{member.display_name} : **(Failed Removing Roles)**\n"
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
remove_results += " \n".join(
|
|
|
|
remove_results += (
|
|
|
|
|
|
|
|
" \n".join(
|
|
|
|
f"{member.display_name} : {role.name}" for role in remove_roles
|
|
|
|
f"{member.display_name} : {role.name}" for role in remove_roles
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
+ "\n"
|
|
|
|
|
|
|
|
)
|
|
|
|
for role_id in removelist:
|
|
|
|
for role_id in removelist:
|
|
|
|
await self.config.custom(
|
|
|
|
await self.config.custom(
|
|
|
|
"RoleMember", role_id, member.id
|
|
|
|
"RoleMember", role_id, member.id
|
|
|
|