SinisterRectus / Discordia

Discord API library written in Lua for the Luvit runtime environment
MIT License
712 stars 145 forks source link

[Question] Retrieving a color for en embed from the message author #348

Closed vlkvch closed 2 years ago

vlkvch commented 2 years ago

The bot sends an embed, and I want this embed's colour to be the one from the highest role. How can I do it?

image

Bilal2453 commented 2 years ago

Hi there.

The colors in Discordia are generally represented with numbers. Roles have their color stored in a field called color. So all you would have to do is pass Role.color to the embed field.

For questions like this, please visit our Discord, or our channel at Discord API.

vlkvch commented 2 years ago

Thank you.