[Warnings] fix raw namedtuple output (#4904)

This commit is contained in:
Obi-Wan3 2021-04-02 14:09:18 -07:00 committed by GitHub
parent 35dfb04066
commit c168e55be9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -552,7 +552,9 @@ class Warnings(commands.Cog):
)
await ctx.send_interactive(
pagify(msg, shorten_by=58),
box_lang=_("Warnings for {user}").format(user=user),
box_lang=_("Warnings for {user}").format(
user=user if isinstance(user, discord.Member) else user.id
),
)
@commands.command()