mirror of
https://github.com/Ryujinx/ryuko-ng.git
synced 2025-01-08 22:45:31 +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."
|
"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(
|
safe_name = await commands.clean_content(escape_markdown=True).convert(
|
||||||
ctx, str(target)
|
ctx, str(target)
|
||||||
|
|
Loading…
Reference in a new issue