【发布时间】:2021-11-26 19:56:39
【问题描述】:
我正在用 discord.py 制作一个机器人,我想用玻璃过滤器发送上述用户的头像。这是我的代码
import aiohttp
import json
import requests
bot = commands.Bot(command_prefix=']')
#glass filter
@bot.command()
async def glass (ctx,*,person:discord.Member =None) :
member = ctx.message.author
person: discord.Member
embed = discord.Embed ()
mentiondp = member.avatar_url
embed.set_image (url = f'https://some-random-api.ml/canvas/glass?avatar={mentiondp}' )
await ctx.send (embed=embed)
但是当我尝试 ]glass @DankMemer 它发送一个空白嵌入..
请帮帮我!
【问题讨论】:
标签: python discord.py embed