Module discord_lumberjack.message_creators.log_colours

Classes

class LogColours (colours: Mapping[int, int] = None)

This class defines a set of colours used for different log levels.

It takes a mapping of log levels to colours. The colours are represented as integers, and are expected to be in the range of 0x000000 to 0xFFFFFF.

You can then access a colour value for any log level by using the brackets operator. If the log level is not in the mapping, the colour for the highest log level that is lower than the log level will be used.

Args

colours : Mapping[int, int], optional
A mapping of log levels to colours. Log levels which are not given will be taken from the closest provided log level less than it. Defaults to a sensible selection of colours.