From f1e5c34fb3de023388eae09b3567361fab0e4875 Mon Sep 17 00:00:00 2001 From: Mary Date: Wed, 5 Apr 2023 12:19:21 +0200 Subject: [PATCH] Fix hackwarn using target_user instead of the target_user name --- robocop_ng/cogs/mod.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/robocop_ng/cogs/mod.py b/robocop_ng/cogs/mod.py index 4c0f299..ed58535 100644 --- a/robocop_ng/cogs/mod.py +++ b/robocop_ng/cogs/mod.py @@ -721,7 +721,9 @@ class Mod(Cog): "I can't warn this user as they're a member of staff." ) - warn_count = userlog(self.bot, target, ctx.author, reason, "warns", target_user) + warn_count = userlog( + self.bot, target, ctx.author, reason, "warns", target_user.name + ) safe_name = await commands.clean_content(escape_markdown=True).convert( ctx, str(target)