scord.py baca embed pada pesan
@client.event
async def on_message(message):
embeds = message.embeds
for embed in embeds:
print(embed.to_dict())
StarbuckBarista
@client.event
async def on_message(message):
embeds = message.embeds
for embed in embeds:
print(embed.to_dict())
@bot.command(pass_context=True)
async def test(ctx):
e = discord.Embed(title=f'{message.author.mention} Geeft een hug...', color=0x614242)
e.set_image( url=random.choice(random_hit))
# e.set_image(url="https://media0.giphy.com/media/W5C9c8nqoaDJWh34i6/giphy.gif")
await ctx.send(embed=e)