From 712f54f05b644cbd5d9bcaa1a58ce08967c02a70 Mon Sep 17 00:00:00 2001 From: ajax146 <31014239+ajax146@users.noreply.github.com> Date: Fri, 5 Jun 2026 14:34:19 -0700 Subject: [PATCH] Swaps the duck stats command to discord.User and changes how user is displayed --- techsupport_bot/commands/duck.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/techsupport_bot/commands/duck.py b/techsupport_bot/commands/duck.py index d5966006..1d402026 100644 --- a/techsupport_bot/commands/duck.py +++ b/techsupport_bot/commands/duck.py @@ -490,13 +490,13 @@ async def duck(self: Self, ctx: commands.Context) -> None: usage="@user (defaults to yourself)", ) async def stats( - self: Self, ctx: commands.Context, *, user: discord.Member = None + self: Self, ctx: commands.Context, *, user: discord.User = None ) -> None: """Discord command for getting duck stats for a given user Args: ctx (commands.Context): The context in which the command was run - user (discord.Member, optional): The member to lookup stats for. + user (discord.User, optional): The user to lookup stats for. Defaults to ctx.message.author. """ if not user: @@ -517,7 +517,9 @@ async def stats( ) return - embed = discord.Embed(title="Duck Stats", description=user.mention) + embed = discord.Embed( + title="Duck Stats", description=f"{user.display_name} (<@{user.id}>)" + ) embed.color = embed_colors.green() embed.add_field(name="Friends", value=duck_user.befriend_count) embed.add_field(name="Kills", value=duck_user.kill_count)