Fix hackwarn using target_user instead of the target_user name

This commit is contained in:
Mary 2023-04-05 12:19:21 +02:00
parent 48f9cc5cde
commit f1e5c34fb3

View file

@ -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)