Recently I've been trying to use RGB Colours, ie 166, 245, 255
. However I'm stuck in here: discord.Colour()
where I can only input ONE value in the brackets. How can I solve it?
For 0-255 RGB range: discord.Colour.from_rgb(r, g, b)
For hexa: discord.Colour(0xff55ff)
You can use the discord.Colour.from_rgb
class method, egcolour = discord.Colour.from_rgb(166, 245, 255)
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.