[feat]: Show avatars command (#16)
This commit is contained in:
@@ -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)
|
||||||
+5
-1
@@ -22,7 +22,8 @@
|
|||||||
|
|
||||||
"hentai": "хентай",
|
"hentai": "хентай",
|
||||||
|
|
||||||
"translate": "Перевести"
|
"translate": "Перевести",
|
||||||
|
"show_avatar": "Показать аватарку"
|
||||||
},
|
},
|
||||||
"1": {
|
"1": {
|
||||||
"Top members of the guild": "Топ участников сервера",
|
"Top members of the guild": "Топ участников сервера",
|
||||||
@@ -105,6 +106,9 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
"en-US": {
|
"en-US": {
|
||||||
|
"0": {
|
||||||
|
"show_avatar": "Show avatar"
|
||||||
|
},
|
||||||
"7": {
|
"7": {
|
||||||
"music": {
|
"music": {
|
||||||
"to_queue": "Added to queue",
|
"to_queue": "Added to queue",
|
||||||
|
|||||||
Reference in New Issue
Block a user