mirror of
https://github.com/Ryujinx/ryuko-ng.git
synced 2024-12-22 19:55:46 +00:00
Fix hackwarn using target_user instead of the target_user name
This commit is contained in:
parent
48f9cc5cde
commit
f1e5c34fb3
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue