Const
Constants used throughout NAFF.
Attributes:
Name | Type | Description |
---|---|---|
__version__ |
str |
The version of the library. |
__repo_url__ |
str |
The URL of the repository. |
__py_version__ |
str |
The python version in use. |
logger_name |
str |
The name of NAFFs default logger. Invalid if a custom logger is passed to |
logger |
logging.Logger |
The logger used throughout NAFF. If a custom logger is passed to |
kwarg_spam |
bool |
Should |
ACTION_ROW_MAX_ITEMS |
int |
The maximum number of items in an action row. |
SELECTS_MAX_OPTIONS |
int |
The maximum number of options a select may have. |
SELECT_MAX_NAME_LENGTH |
int |
The max length of a select's name. |
CONTEXT_MENU_NAME_LENGTH |
int |
The max length of a context menu's name. |
SLASH_CMD_NAME_LENGTH |
int |
The max length of a slash command's name. |
SLASH_CMD_MAX_DESC_LENGTH |
int |
The maximum length of a slash command's description. |
SLASH_CMD_MAX_OPTIONS |
int |
The maximum number of options a slash command may have. |
SLASH_OPTION_NAME_LENGTH |
int |
The maximum length of a slash option's name. |
EMBED_MAX_NAME_LENGTH |
int |
The maximum length for an embed title |
EMBED_MAX_DESC_LENGTH |
int |
The maximum length for an embed description |
EMBED_MAX_FIELDS |
int |
The maximum number of fields for an embed |
EMBED_TOTAL_MAX |
int |
The total combined number of characters for an embed |
PREMIUM_GUILD_LIMITS |
dict |
Limits granted per premium level of a guild |
GLOBAL_SCOPE |
_sentinel |
A sentinel that represents a global scope for application commands. |
MENTION_PREFIX |
_sentinel |
A sentinel representing the bot will be mentioned for a prefix |
MISSING |
_sentinel |
A sentinel value that indicates something has not been set |
T |
TypeVar |
A type variable used for generic typing. |
Absent |
Union[T, Missing] |
A type hint for a value that may be MISSING. |