It is a package with basic utilities for a discord bot main in discord.py.
To use it, simply import it, and initialize the dpytils.utils()
class.
from dpytils import utils
utilities = utils()
Currently, only two. randcolor()
and permsfromvalue()
.
This function will return a random color (of type int) to be used for a discord embed, or anything else.
This function will return another class, discordPermissions, which contains the following values.
The raw discord permissions object from discord.py.
A list of permission names that are True
from the given value
A list of permission names that are False
from the given value
A nicely formatted string with a list of permissions, and emoji to show true/false.