types module
Note
This module is imports as from .. import types
. This means that you
must use ezbotf.types.TOMLDict
as example.
Defines almost all types for the framework work
TOMLDict = dict[str, Any]
Alias to
dict[str, Any]
PermissionsList = list[str | ezbotf.Permissions]
Alias to
list[str | ezbotf.Permissions]
PermissionsDict = dict[int, PermissionsList]
Alias to
dict[int, PermissionsList]
ordict[int, list[str | ezbotf.Permissions]]
VersionSpecific = dict[str, Any]
Alias to
dict[str, Any]
PLUGIN_REQUIREMENT_ONE_CHECK = list[str, list[str, str]]
Alias to
list[str, list[str, str]]
PLUGIN_REQUIREMENT_TWO_CHECKS = list[str, list[str, str], list[str, str]]
Alias to
list[str, list[str, str], list[str, str]]
REQUIRED_PLUGINS_LIST = list[PLUGIN_REQUIREMENT_ONE_CHECK | PLUGIN_REQUIREMENT_TWO_CHECKS]`
Alias to
list[PLUGIN_REQUIREMENT_ONE_CHECK | PLUGIN_REQUIREMENT_TWO_CHECKS]
orlist[list[str, list[str, str]] | list[str, list[str, str], list[str, str]]]
Note
This is scary
PluginEventFunction = Callable[[Self], None]
Alias to
Callable[[Self], None]
PluginCommand = Coroutine[EventBuilder, Context, None]
Alias to
Coroutine[EventBuilder, Context, None]