Answers for "sending an embed message discord.py"

3

send embed discord.py

@client.event
async def on_message(message):
    if message.content.startswith('!hello'):
        embedVar = discord.Embed(title="Title", description="Desc", color=0x00ff00)
        embedVar.add_field(name="Field1", value="hi", inline=False)
        embedVar.add_field(name="Field2", value="hi2", inline=False)
        await message.channel.send(embed=embedVar)
Posted by: Guest on June-21-2021
0

discord.py read embed on message

@client.event
async def on_message(message):
	embeds = message.embeds
    for embed in embeds:
        print(embed.to_dict())
Posted by: Guest on October-16-2020

Code answers related to "sending an embed message discord.py"

Python Answers by Framework

Browse Popular Code Answers by Language