Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question