Skip to content
This repository was archived by the owner on Feb 7, 2026. It is now read-only.
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
13 changes: 13 additions & 0 deletions cogs/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,19 @@ async def whoami(self, ctx: ApplicationContext, user: discord.User=None):
localembed.add_field(name="Net worth", value=f"{currency.get_user_networth(user.id)} coins", inline=False)
await ctx.respond(embed=localembed)

@commands.slash_command(
name="avatar",
description="Return a user's profile avatar."
)
@option(name="user", description="Who's profile avatar do you want to see?", type=discord.User, default=None)
async def avatar(self, ctx: ApplicationContext, user: discord.User = None):
"""Return a user's profile avatar."""
if user is None:
user = ctx.author
localembed = discord.Embed(title=f"{user.display_name}'s Profile Avatar", description=f"[avatar link]({user.avatar})", color=discord.Color.random())
localembed.set_image(url=user.avatar)
await ctx.respond(embed=localembed)

@commands.slash_command(
name="profile",
description="Shows basic stats about your isobot profile, or someone else's profile stats."
Expand Down