【发布时间】:2022-02-12 12:41:10
【问题描述】:
我的机器人将嵌入发送到特定频道,之后他还应该向他发送的嵌入添加 2 个反应。但我有点坚持,通过网站搜索并不成功。
if '!suggestion' in message.content:
if "salus insured" in [y.name.lower() for y in message.author.roles]:
channel = client.get_channel(938973763414921316)
embedVar = discord.Embed(title="User suggestion, vote below!", color=0x03b2f8)
embedVar.add_field(name="Suggestion", value="```"+substring+"```", inline=False)
embedVar.add_field(name="Suggested by", value="<@{}>".format(message.author.id))
embedVar.set_footer(text="Suggestion Poll | @Salus", icon_url="https://i.imgur.com/rwBBzGK.png")
await channel.send(embed=embedVar)
await message.delete()
这是我的代码的最后一部分。
【问题讨论】:
标签: python discord discord.py embed