From 99fe741438a5209f30433c444e05bec3e4b52e17 Mon Sep 17 00:00:00 2001 From: Dan Hess Date: Fri, 21 May 2021 14:27:45 -0800 Subject: [PATCH] Correct unassign incorrectly casting to str --- cogs/roles.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cogs/roles.py b/cogs/roles.py index fe75fd3..c1f7446 100644 --- a/cogs/roles.py +++ b/cogs/roles.py @@ -516,9 +516,9 @@ class Roles(commands.Cog): roles = [r for r in role if r.id in self_assignable_roles] fmt += "\n".join( [ - "Successfully removed {}".format(r.name) - if str(r.id) in self_assignable_roles - else "{} is not available to be self-assigned".format(r.name) + f"Successfully removed {r.name}" + if r.id in self_assignable_roles + else f"{r.name} is not available to be self-assigned" for r in role ] )