Examples
/avatar
Show a member's profile picture in large size.
Shows the profile picture of a member, or your own.
text
/avatar member: @AlexThe reply is an embed with the picture at full size.
Setup#
Create a slash command and switch to Advanced.
| Field | Value |
|---|---|
| Command Name | avatar |
| Description | Show someone's avatar |
Arguments:
| Type | Name | Required |
|---|---|---|
| Member | member | No |
Code#
Pre-hook:
python
target = member or user
picture = str(target.display_avatar_url)
set_embed(Message(
title=f"{target.display_name}'s avatar",
url=picture,
image=picture,
color="#5865F2",
))Leave the Content / Reply Message box empty.
| Part | Job |
|---|---|
member or user | Uses the picked member, or you when nobody is picked. |
display_avatar_url | The server avatar if they set one, else their main avatar. |
url=picture | Makes the title a link to the full image. |
image=picture | Shows the picture large inside the embed. |