【发布时间】:2018-11-24 14:43:09
【问题描述】:
我不知道如何将机器人上的嵌入消息从一个渠道发送到另一个渠道,尽管我可以弄清楚如何将自己的消息发送到另一个渠道:
@bot.command(pass_context=True)
async def tf1(ctx):
embed=discord.Embed(title="Test", description="1", color=0x5bcdee)
embed.set_footer(text="Test2")
await bot.say(discord.Object(id='456277299189383168'), embed=embed)
这个似乎不起作用,每当我发送它时,我都会收到这个<discord.object.Object object at 0x03B66BD0>,然后是嵌入的消息。
另一方面,当我尝试复制消息而不是嵌入消息时,这有效,这里是复制我的消息的代码:
@bot.command(pass_context=True)
async def obisowner(ctx, *, mesg):
await bot.send_message(discord.Object(id='456277299189383168'), "{}".format(mesg))
【问题讨论】:
标签: python discord discord.py