【发布时间】:2021-08-11 21:31:55
【问题描述】:
我不知道如何放置图像 url 和东西并使其显示出来,请大家帮帮我
@bot.command()
async def embed(ctx, colour, title, description, *,url):
await ctx.message.delete()
embed=discord.Embed(colour=colour, title=title, type='rich', description=description, url=url, timestamp=None)
await ctx.send(embed=embed)
【问题讨论】:
-
Self-bots 已被 Discord 明确标记为不允许。任何制作此类程序的尝试都可能导致您的帐户被 Discord 禁止。您仍然可以创建一个普通的机器人帐户 (discordpy.readthedocs.io/en/stable)。
-
Discord.py 不再支持自我机器人 ->
message.content将永远是None -
@FluxedScript,这与 OP 的要求无关
-
我试过了,但它不会显示图像
@bot.command() async def e(ctx, colour, title, description, *,url): await ctx.message.delete() embed=discord.Embed(colour=colour, title=title, description=description, url=url) embed.set_thumbnail(url="https://i2.wp.com/digiseller.ru/preview/879079/p1_2964281_c6b2cafd.gif") await ctx.send(embed=embed)
标签: python discord discord.py embed