【问题标题】:I'm Trying to make a selfbot that will send embed我正在尝试制作一个可以发送嵌入的 selfbot
【发布时间】: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


【解决方案1】:

不管 Discord ToS 是否禁止 selfbots, 你可以在docs中查找所有可能的属性

例如可以通过设置图片

embed.set_image(url)

或缩略图通过

embed.set_thumbnail(url)

【讨论】:

    猜你喜欢
    • 2019-02-20
    • 2020-12-28
    • 1970-01-01
    • 2010-11-26
    • 1970-01-01
    • 1970-01-01
    • 2021-10-14
    • 2020-03-11
    • 2019-07-01
    相关资源
    最近更新 更多