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.Commandanddiscord.ext.commands.Groupto support root aliases. A
root_aliaseskeyword 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_typingmethod 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.
Submodules¶
- caching
- channel
- commands
- cooldown
- error_handling
- function
- interactions
- logging
- members
- paste_service
MAX_PASTE_SIZEPasteFilePasteFile.__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
PasteResponsePasteResponse.__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
PasteTooLongErrorPasteUnsupportedLexerErrorPasteUploadErrorsend_to_paste_service()
- regex
- scheduling