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)