Utils¶
Useful utilities and tools for Discord bot development.
- apply_monkey_patches()[source]¶
Applies all common monkey patches for our bots.
- Return type:
- Patches
discord.ext.commands.Command
anddiscord.ext.commands.Group
to support root aliases. A
root_aliases
keyword argument is added to these two objects, which is a sequence of alias names that will act as top-level groups rather than being aliases of the command’s group.It’s stored as an attribute also named
root_aliases
- Patches discord’s internal
send_typing
method so that it ignores 403 errors from Discord. When under heavy load Discord has added a CloudFlare worker to this route, which causes 403 errors to be thrown.
Subpackages¶
Submodules¶
- caching
- channel
- checks
- commands
- cooldown
- function
- interactions
- lock
- logging
- members
- messages
- pagination
EmptyPaginatorEmbedError
LinePaginator
PaginationEmojis
PaginationEmojis.__class_vars__
PaginationEmojis.__private_attributes__
PaginationEmojis.__pydantic_complete__
PaginationEmojis.__pydantic_computed_fields__
PaginationEmojis.__pydantic_core_schema__
PaginationEmojis.__pydantic_custom_init__
PaginationEmojis.__pydantic_decorators__
PaginationEmojis.__pydantic_extra__
PaginationEmojis.__pydantic_fields__
PaginationEmojis.__pydantic_fields_set__
PaginationEmojis.__pydantic_generic_metadata__
PaginationEmojis.__pydantic_parent_namespace__
PaginationEmojis.__pydantic_post_init__
PaginationEmojis.__pydantic_private__
PaginationEmojis.__pydantic_serializer__
PaginationEmojis.__pydantic_validator__
PaginationEmojis.__signature__
PaginationEmojis.model_config
- paste_service
MAX_PASTE_SIZE
PasteFile
PasteFile.__class_vars__
PasteFile.__private_attributes__
PasteFile.__pydantic_complete__
PasteFile.__pydantic_computed_fields__
PasteFile.__pydantic_core_schema__
PasteFile.__pydantic_custom_init__
PasteFile.__pydantic_decorators__
PasteFile.__pydantic_extra__
PasteFile.__pydantic_fields__
PasteFile.__pydantic_fields_set__
PasteFile.__pydantic_generic_metadata__
PasteFile.__pydantic_parent_namespace__
PasteFile.__pydantic_post_init__
PasteFile.__pydantic_private__
PasteFile.__pydantic_serializer__
PasteFile.__pydantic_validator__
PasteFile.__signature__
PasteFile.model_config
PasteResponse
PasteResponse.__class_vars__
PasteResponse.__private_attributes__
PasteResponse.__pydantic_complete__
PasteResponse.__pydantic_computed_fields__
PasteResponse.__pydantic_core_schema__
PasteResponse.__pydantic_custom_init__
PasteResponse.__pydantic_decorators__
PasteResponse.__pydantic_extra__
PasteResponse.__pydantic_fields__
PasteResponse.__pydantic_fields_set__
PasteResponse.__pydantic_generic_metadata__
PasteResponse.__pydantic_parent_namespace__
PasteResponse.__pydantic_post_init__
PasteResponse.__pydantic_private__
PasteResponse.__pydantic_serializer__
PasteResponse.__pydantic_validator__
PasteResponse.__signature__
PasteResponse.model_config
PasteTooLongError
PasteUnsupportedLexerError
PasteUploadError
send_to_paste_service()
- regex
- scheduling