【问题标题】:Discord bot recover the attachment of a message and send it in another channel with an embedDiscord bot 恢复消息的附件并通过嵌入将其发送到另一个频道
【发布时间】:2020-03-19 07:04:19
【问题描述】:

我希望我的机器人恢复消息的附件并通过嵌入将其发送到另一个频道,我这样做: embed.set_image(url=message.attachments[0].url 但它只适用于图像(或 gif,但视频不起作用)

【问题讨论】:

    标签: python-3.x discord discord.py discord.py-rewrite


    【解决方案1】:

    embed.set_image 顾名思义是用于设置图像。不幸的是,Discord 不允许机器人在嵌入中发送视频。您的有限选择是获取 url 并将其作为消息的内容发布,然后让 discord 嵌入它。

    【讨论】:

      猜你喜欢
      • 2018-11-24
      • 2023-03-07
      • 2021-01-10
      • 1970-01-01
      • 2023-03-27
      • 2018-11-24
      • 1970-01-01
      • 2022-01-05
      • 2020-08-29
      相关资源
      最近更新 更多