How can I send an embed via my Discord bot, w/python?

前端 未结 3 528
無奈伤痛
無奈伤痛 2020-12-10 06:42

I\'ve been working a new Discord bot.

I\'ve learnt a few stuff,and, now, I\'d like to make the things a little more custom.

I\'ve been trying to make the bot

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-10 07:09

    @bot.command()
    async def displayembed(ctx):
        embed = discord.Embed(title="Your title here", description="Your desc here") #,color=Hex code
        embed.add_field(name="Name", value="you can make as much as fields you like to")
        embed.set_footer(name="footer") #if you like to
        await ctx.send(embed=embed)
    

提交回复
热议问题