Z
Z
Zakkaru2021-08-12 22:43:28
Python
Zakkaru, 2021-08-12 22:43:28

I do not know why Embed is not sent?

The second embed add doesn't recover I don't know why

@client.command(aliases=["anime","а"])
async def аниме(ctx):
    text = choice(random_list)
    await ctx.send(embed = discord.Embed(title = 'Вот ваше аниме', description = text, colour = discord.Colour.gold()))
    embed.add_field(name='Список создан пользователями етого сервера)', value=ctx.message.author.mention, inline=False)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
x4zx, 2021-08-12
@Zakkaru

So it will be correct:
embed = discord.Embed(title = 'Here is your anime', description = text, color = discord.Colour.gold()))
embed.add_field(name='The list was created by users of this server', value=ctx .message.author.mention, inline=False)
await ctx.send(embed = embed)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question