Colour¶
discord_http.colour module¶
- class discord_http.colour.Colour(value)¶
Bases:
object
- Parameters:
value (int)
- classmethod from_hex(hex_value) Self ¶
Creates a Colour object from a hex string.
- Parameters:
hex_value (
str
) – The hex string to convert- Return type:
Self
- Returns:
The colour object
- Raises:
ValueError – Invalid hex colour