[feat]: Show avatars command (#16)

This commit is contained in:
Sweetbread
2023-07-18 18:00:19 +03:00
parent b7618bef92
commit 7bfef7c324
2 changed files with 14 additions and 1 deletions
+9
View File
@@ -0,0 +1,9 @@
import discord
from discord.ext.commands import Bot
async def setup(bot: Bot):
@bot.tree.context_menu()
async def show_avatar(inter: discord.Interaction, user: discord.Member):
e = discord.Embed(title="Аватар пользователя")
e.set_image(url=user.display_avatar.url)
await inter.response.send_message(embed=e)