Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions techsupport_bot/commands/duck.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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)
Expand Down
Loading