I cant figure out how to send a embedded message on a bot from one channel to another although I can figure out how to send my own message to another:
@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)
This doesn't seem to work and whenever I send it I get this <discord.object.Object object at 0x03B66BD0>
and then the embedded message.
On the other hand this works when I am trying to copy a message and not a embedded message, heres the code for copying my message:
@bot.command(pass_context=True)
async def obisowner(ctx, *, mesg):
await bot.send_message(discord.Object(id='456277299189383168'), "{}".format(mesg))
bot.say()
takes a first positional argumentmessage
, and send the message and embed to the channel of the command context (ie. the channel of which the command message is received by the bot).Since you want to send the message to a different channel, use
bot.send_message()
instead: