【问题标题】:How to position thumbnail discord.py?如何定位缩略图 discord.py?
【发布时间】:2021-08-11 08:23:17
【问题描述】:

我正在用 Python 制作一个机器人,但是当机器人发送嵌入缩略图时,它位于右侧,但我想将其定位在左侧。

这是我的代码:

@client.command()
async def about(ctx):
   embed = discord.Embed(title="Warning",description="This command is under construction!",color=0xffff00)
   embed.set_thumbnail(url='https://i.imgur.com/s3PooTk.png',)
   await ctx.send(embed=embed)

【问题讨论】:

    标签: python image api discord bots


    【解决方案1】:

    无法使用 discord.py 设置缩略图的位置,因为Discord API 不提供与嵌入缩略图位置相关的任何字段。缩略图总是出现在嵌入的右上角,而embed images 总是出现在底部。

    【讨论】:

    • 奇怪的是在 Discord.js 上它在左边
    • @MatteoAT 你确定吗?我从未见过在左侧嵌入缩略图的 Discord。
    • 我用 discord.js 编写了 Bots,所以我知道,这就是我想知道的原因
    猜你喜欢
    • 2018-08-06
    • 1970-01-01
    • 2021-07-25
    • 2020-10-01
    • 2015-08-24
    • 1970-01-01
    • 1970-01-01
    • 2016-11-09
    • 1970-01-01
    相关资源
    最近更新 更多