Utils¶
Contains some utility commands for general use as well as for testing and development.
ping
¶
Determines the latency of the bot to Discord in milliseconds.
.ping
snowflake
¶
Extracts and displays the timestamp from any Discord snowflake ID. It can be used to find out the date and time of creation of any Discord user, guild, channel, message, role, custom emoji or anything else that has an ID.
.[snowflake|sf|time] <ID>
Arguments:
Argument | Required | Description |
---|---|---|
ID |
The snowflake ID |
encode
¶
Applies Python's str.encode
function to the username and nickname of a given user.
.[encode|enc] <user>
Argument:
Argument | Required | Description |
---|---|---|
user |
The user or member |
suggest_role_color
¶
Suggests the color for a new role, trying to avoid colors already in use. Optionally you can specify a list of colors to also avoid.
.[suggest_role_color|rc] [avoid...]
Arguments:
Argument | Required | Description |
---|---|---|
avoid |
A list of color hex codes to avoid |
Required Permissions:
utils.suggest_role_color