【问题标题】:Discord Embed image not working in discord.pyDiscord嵌入图像在discord.py中不起作用
【发布时间】: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


    【解决方案1】:

    目前 Discord 嵌入已关闭。您需要稍等一下,直到他们修复它。 https://discordstatus.com

    【讨论】:

    • 哦,谢谢您的告知!
    • 但是我的其他嵌入工作正常!
    • 您是否检查了图像 URL 是否有效?它返回一个带有 元素的 HTML 页面......您还需要从那里获取 URL。 @RovinduThamuditha
    • 是的,但现在我意识到 api 不起作用:(
    猜你喜欢
    • 2021-06-04
    • 2020-08-16
    • 2021-02-14
    • 1970-01-01
    • 2021-03-31
    • 2023-03-09
    • 2022-01-20
    • 2021-01-02
    • 2021-02-02
    相关资源
    最近更新 更多