F
F
FrOms2021-03-25 18:24:37
Python
FrOms, 2021-03-25 18:24:37

discord_webhook library DiscordEmbed where to get colors from?

Using DiscordEmbed from discord_webhook, I ran into a problem that I can't replace colors. I tried using HEX, but it gave an error NameError: name 'FF0000' is not defined. Tell me what colors to use or how to write colors correctly?
Here is the code:

if message.content.startswith('!правила'):
            embed = discord.Embed(title='''Правила:
1) быть активным
2) не токсичить и не оскарблять кого-либо
3) и так далее
            ''', color=0xFF0000)
            await message.channel.send(embed=embed)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
ivanrotzer, 2021-03-25
@ivanrotzer

0xFF0000, colors are in HEX format...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question