2021年4月11日星期日

Replying to a message with a embed (Discord.py)

i'm having a problem where i can't reply to a message with an embed. is this even possible? I'm guessing it is and im just doing it horribly wrong.

My error - TypeError: object method can't be used in 'await' expression

if message.content.startswith('!test'):         await message.reply         embedVar = discord.Embed(description=".order", color=0x7289da)                embedVar.add_field(name='test', value='test')         await message.channel.send(embed=embedVar)  
https://stackoverflow.com/questions/67051187/replying-to-a-message-with-a-embed-discord-py April 12, 2021 at 07:50AM

没有评论:

发表评论