[英]Discord Embed image not working in discord.py
I'm making a bot with discord.py and I want to send the mentioned user's avatar with a glass filter.. This is my code我正在用 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)
But when I tried ]glass @DankMemer It sends a blank embed..但是当我尝试]glass @DankMemer它发送一个空白嵌入..
Please Help me!请帮我!
Currently Discord embeds are down.目前 Discord 嵌入已关闭。 You'll need to wait a bit until they fix it.
您需要稍等片刻,直到他们修好它。 https://discordstatus.com
https://discordstatus.com
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.