aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Mark <[email protected]>2020-06-16 13:12:58 -0700
committerGravatar GitHub <[email protected]>2020-06-16 13:12:58 -0700
commitb2972e0f816c60395517412011e312a3040491a0 (patch)
tree04493da03619fdde350ae8d70be29720cf764cda
parentModLog: refactor on_member_update (diff)
Use int literal instead of len for slice
Co-authored-by: Kieran Siek <[email protected]>
-rw-r--r--bot/cogs/moderation/modlog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/moderation/modlog.py b/bot/cogs/moderation/modlog.py
index bd805f590..ffbb87bbe 100644
--- a/bot/cogs/moderation/modlog.py
+++ b/bot/cogs/moderation/modlog.py
@@ -490,7 +490,7 @@ class ModLog(Cog, name="ModLog"):
if not attr: # Not sure why, but it happens.
continue
- attr = attr[len("root."):] # Remove "root." prefix.
+ attr = attr[5:] # Remove "root." prefix.
attr = attr.replace("_", " ").replace(".", " ").capitalize()
new = value.get("new_value")