From e43e6491308e8959f8f08f72a1be80e8a965f7c2 Mon Sep 17 00:00:00 2001
From: jb3
Date: Sun, 10 Aug 2025 22:15:57 +0000
Subject: Deploying to docs from @
python-discord/bot-core@202b5cd84f1dbd9f42f4387b20fa4773f28e6e31 🚀
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
main/.buildinfo | 2 +-
main/changelog.html | 10 +++-
main/output/pydis_core.async_stats.html | 6 +-
main/output/pydis_core.html | 68 +++++++++++-----------
main/output/pydis_core.site_api.html | 26 ++++-----
main/output/pydis_core.utils.caching.html | 8 +--
main/output/pydis_core.utils.channel.html | 4 +-
main/output/pydis_core.utils.checks.html | 14 ++---
main/output/pydis_core.utils.commands.html | 2 +-
main/output/pydis_core.utils.cooldown.html | 12 ++--
...dis_core.utils.error_handling.commands.abc.html | 8 +--
.../pydis_core.utils.error_handling.commands.html | 16 ++---
...core.utils.error_handling.commands.manager.html | 8 +--
main/output/pydis_core.utils.error_handling.html | 2 +-
main/output/pydis_core.utils.function.html | 12 ++--
main/output/pydis_core.utils.html | 4 +-
main/output/pydis_core.utils.interactions.html | 18 +++---
main/output/pydis_core.utils.lock.html | 22 +++----
main/output/pydis_core.utils.logging.html | 8 +--
main/output/pydis_core.utils.members.html | 4 +-
main/output/pydis_core.utils.messages.html | 2 +-
main/output/pydis_core.utils.pagination.html | 18 +++---
main/output/pydis_core.utils.paste_service.html | 26 ++++-----
main/output/pydis_core.utils.regex.html | 6 +-
main/output/pydis_core.utils.scheduling.html | 18 +++---
main/searchindex.js | 2 +-
v10.0.0/.buildinfo | 2 +-
v10.0.0/output/pydis_core.utils.paste_service.html | 12 ++--
v10.0.0/searchindex.js | 2 +-
v10.1.0/.buildinfo | 2 +-
v10.1.0/output/pydis_core.utils.paste_service.html | 12 ++--
v10.1.0/searchindex.js | 2 +-
v10.2.0/.buildinfo | 2 +-
v10.2.0/output/pydis_core.utils.paste_service.html | 12 ++--
v10.2.0/searchindex.js | 2 +-
v10.3.0/.buildinfo | 2 +-
v10.3.0/output/pydis_core.utils.paste_service.html | 12 ++--
v10.3.0/searchindex.js | 2 +-
v10.4.0/.buildinfo | 2 +-
v10.4.0/output/pydis_core.utils.paste_service.html | 12 ++--
v10.4.0/searchindex.js | 2 +-
v10.5.0/.buildinfo | 2 +-
v10.5.0/output/pydis_core.utils.paste_service.html | 12 ++--
v10.5.0/searchindex.js | 2 +-
v10.5.1/.buildinfo | 2 +-
v10.5.1/output/pydis_core.utils.paste_service.html | 12 ++--
v10.5.1/searchindex.js | 2 +-
v10.6.0/.buildinfo | 2 +-
v10.6.0/output/pydis_core.html | 6 +-
v10.6.0/output/pydis_core.utils.pagination.html | 6 +-
v10.6.0/output/pydis_core.utils.paste_service.html | 12 ++--
v10.6.0/searchindex.js | 2 +-
v10.7.0/.buildinfo | 2 +-
v10.7.0/output/pydis_core.html | 6 +-
v10.7.0/output/pydis_core.utils.pagination.html | 6 +-
v10.7.0/output/pydis_core.utils.paste_service.html | 12 ++--
v10.7.0/searchindex.js | 2 +-
v11.0.0/.buildinfo | 2 +-
v11.0.0/output/pydis_core.html | 6 +-
v11.0.0/output/pydis_core.utils.pagination.html | 6 +-
v11.0.0/output/pydis_core.utils.paste_service.html | 12 ++--
v11.0.0/searchindex.js | 2 +-
v11.0.1/.buildinfo | 2 +-
v11.0.1/output/pydis_core.html | 6 +-
v11.0.1/output/pydis_core.utils.pagination.html | 6 +-
v11.0.1/output/pydis_core.utils.paste_service.html | 12 ++--
v11.0.1/searchindex.js | 2 +-
v11.1.0/.buildinfo | 2 +-
v11.1.0/output/pydis_core.html | 6 +-
v11.1.0/output/pydis_core.utils.pagination.html | 6 +-
v11.1.0/output/pydis_core.utils.paste_service.html | 12 ++--
v11.1.0/searchindex.js | 2 +-
v11.2.0/.buildinfo | 2 +-
v11.2.0/output/pydis_core.html | 6 +-
v11.2.0/output/pydis_core.utils.pagination.html | 6 +-
v11.2.0/output/pydis_core.utils.paste_service.html | 12 ++--
v11.2.0/searchindex.js | 2 +-
v11.3.0/.buildinfo | 2 +-
v11.3.0/output/pydis_core.html | 6 +-
v11.3.0/output/pydis_core.utils.pagination.html | 6 +-
v11.3.0/output/pydis_core.utils.paste_service.html | 12 ++--
v11.3.0/searchindex.js | 2 +-
v11.3.1/.buildinfo | 2 +-
v11.3.1/output/pydis_core.html | 6 +-
v11.3.1/output/pydis_core.utils.pagination.html | 6 +-
v11.3.1/output/pydis_core.utils.paste_service.html | 12 ++--
v11.3.1/searchindex.js | 2 +-
v11.4.0/.buildinfo | 2 +-
v11.4.0/output/pydis_core.html | 6 +-
v11.4.0/output/pydis_core.utils.pagination.html | 6 +-
v11.4.0/output/pydis_core.utils.paste_service.html | 12 ++--
v11.4.0/searchindex.js | 2 +-
v11.5.0/.buildinfo | 2 +-
v11.5.0/output/pydis_core.html | 6 +-
v11.5.0/output/pydis_core.utils.pagination.html | 6 +-
v11.5.0/output/pydis_core.utils.paste_service.html | 12 ++--
v11.5.0/searchindex.js | 2 +-
v11.5.1/.buildinfo | 2 +-
v11.5.1/output/pydis_core.html | 6 +-
v11.5.1/output/pydis_core.utils.pagination.html | 6 +-
v11.5.1/output/pydis_core.utils.paste_service.html | 12 ++--
v11.5.1/searchindex.js | 2 +-
v11.6.0/.buildinfo | 2 +-
v11.6.0/output/pydis_core.html | 6 +-
v11.6.0/output/pydis_core.utils.pagination.html | 6 +-
v11.6.0/output/pydis_core.utils.paste_service.html | 12 ++--
v11.6.0/searchindex.js | 2 +-
v11.6.1/.buildinfo | 2 +-
v11.6.1/output/pydis_core.html | 6 +-
v11.6.1/output/pydis_core.utils.pagination.html | 6 +-
v11.6.1/output/pydis_core.utils.paste_service.html | 12 ++--
v11.6.1/searchindex.js | 2 +-
v11.7.0/.buildinfo | 2 +-
v11.7.0/output/pydis_core.html | 6 +-
v11.7.0/output/pydis_core.utils.pagination.html | 6 +-
v11.7.0/output/pydis_core.utils.paste_service.html | 12 ++--
v11.7.0/searchindex.js | 2 +-
v9.0.0/.buildinfo | 2 +-
v9.1.1/.buildinfo | 2 +-
v9.10.0-alpha.1/.buildinfo | 2 +-
v9.10.0-alpha.2/.buildinfo | 2 +-
v9.2.0/.buildinfo | 2 +-
v9.3.0/.buildinfo | 2 +-
v9.4.0/.buildinfo | 2 +-
v9.4.1/.buildinfo | 2 +-
v9.5.0/.buildinfo | 2 +-
v9.5.1/.buildinfo | 2 +-
v9.6.0/.buildinfo | 2 +-
v9.7.0/.buildinfo | 2 +-
v9.8.0/.buildinfo | 2 +-
v9.9.0/.buildinfo | 2 +-
v9.9.1/.buildinfo | 2 +-
v9.9.2/.buildinfo | 2 +-
133 files changed, 433 insertions(+), 429 deletions(-)
diff --git a/main/.buildinfo b/main/.buildinfo
index c3c38343..69934d7c 100644
--- a/main/.buildinfo
+++ b/main/.buildinfo
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file records the configuration used when building these files. When it is not found, a full rebuild will be done.
-config: 74310265f68a09646aafff1e434922d8
+config: 9eb24cc2e88b4c470859d190c32e7178
tags: 645f666f9bcd5a90fca523b33c5a78b7
diff --git a/main/changelog.html b/main/changelog.html
index 218a8858..6fb88cde 100644
--- a/main/changelog.html
+++ b/main/changelog.html
@@ -477,9 +477,8 @@
Changelog
-
+
11.5.1 23rd November 2024
[Bug] #295: Update pydis_core.utils.regex.DISCORD_INVITE
to not be overly strict.
diff --git a/main/output/pydis_core.async_stats.html b/main/output/pydis_core.async_stats.html
index 16ac58ac..85a12722 100644
--- a/main/output/pydis_core.async_stats.html
+++ b/main/output/pydis_core.async_stats.html
@@ -480,12 +480,12 @@
An async transport method for statsd communication.
-
-class AsyncStatsClient(loop, host='localhost', port=8125, prefix=None)[source]
+class AsyncStatsClient(loop, host='localhost', port=8125, prefix=None)[source]
Bases: StatsClientBase
An async implementation of statsd.client.base.StatsClientBase
that supports async stat communication.
-
-__init__(loop, host='localhost', port=8125, prefix=None)[source]
+__init__(loop, host='localhost', port=8125, prefix=None)[source]
Create a new AsyncStatsClient
.
- Parameters:
@@ -502,7 +502,7 @@
-
-async create_socket()[source]
+async create_socket()[source]
Use asyncio.loop.create_datagram_endpoint
from the loop given on init to create a socket.
- Return type:
diff --git a/main/output/pydis_core.html b/main/output/pydis_core.html
index 26686aca..f64b593f 100644
--- a/main/output/pydis_core.html
+++ b/main/output/pydis_core.html
@@ -480,12 +480,12 @@
Useful utilities and tools for Discord bot development.
-
-class BotBase(*args, guild_id, allowed_roles, http_session, redis_session=None, api_client=None, statsd_url=None, **kwargs)[source]
+class BotBase(*args, guild_id, allowed_roles, http_session, redis_session=None, api_client=None, statsd_url=None, **kwargs)[source]
Bases: Bot
A sub-class that implements many common features that Python Discord bots use.
-
-guild_id[source]
+guild_id[source]
ID of the guild that the bot belongs to.
- Type:
@@ -496,7 +496,7 @@
-
-http_session[source]
+http_session[source]
The http session used for sending out HTTP requests.
- Type:
@@ -507,7 +507,7 @@
-
-api_client[source]
+api_client[source]
The API client used for communications with the site service.
- Type:
@@ -518,7 +518,7 @@
-
-statsd_url[source]
+statsd_url[source]
The url that statsd sends metrics to.
- Type:
@@ -529,7 +529,7 @@
-
-redis_session[source]
+redis_session[source]
The redis session used to communicate with the Redis instance.
- Type:
@@ -540,7 +540,7 @@
-
-stats[source]
+stats[source]
The statsd client that sends metrics.
- Type:
@@ -551,7 +551,7 @@
-
-all_extensions[source]
+all_extensions[source]
All extensions that were found within the module
passed to
self.load_extensions
. Use self.extensions
to get the loaded extensions.
@@ -563,7 +563,7 @@
-
-__init__(*args, guild_id, allowed_roles, http_session, redis_session=None, api_client=None, statsd_url=None, **kwargs)[source]
+__init__(*args, guild_id, allowed_roles, http_session, redis_session=None, api_client=None, statsd_url=None, **kwargs)[source]
Initialise the base bot instance.
- Parameters:
@@ -582,7 +582,7 @@ a dummy statsd client will be created.
-
-async add_cog(cog)[source]
+async add_cog(cog)[source]
Add the given cog
to the bot and log the operation.
- Return type:
@@ -593,7 +593,7 @@ a dummy statsd client will be created.
-
-add_command(command)[source]
+add_command(command)[source]
Add command
as normal and then add its root aliases to the bot.
- Return type:
@@ -604,7 +604,7 @@ a dummy statsd client will be created.
-
-clear()[source]
+clear()[source]
Not implemented! Re-instantiate the bot instead of attempting to re-use a closed one.
- Return type:
@@ -615,7 +615,7 @@ a dummy statsd client will be created.
-
-async close()[source]
+async close()[source]
Close the Discord connection, and the aiohttp session, connector, statsd client, and resolver.
- Return type:
@@ -626,7 +626,7 @@ a dummy statsd client will be created.
-
-async load_extensions(module, *, sync_app_commands=True)[source]
+async load_extensions(module, *, sync_app_commands=True)[source]
Load all the extensions within the given module
and save them to self.all_extensions
.
- Parameters:
@@ -640,7 +640,7 @@ a dummy statsd client will be created.
-
-async log_to_dev_log(message)[source]
+async log_to_dev_log(message)[source]
Log the given message to #dev-log.
- Return type:
@@ -651,7 +651,7 @@ a dummy statsd client will be created.
-
-async on_guild_available(guild)[source]
+async on_guild_available(guild)[source]
Set the internal guild available event when self.guild_id becomes available.
If the cache appears to still be empty (no members, no channels, or no roles), the event
will not be set and guild_available_but_cache_empty event will be emitted.
@@ -664,7 +664,7 @@ will not be set and guild_available_but_cache_empty event will be e
-
-async on_guild_unavailable(guild)[source]
+async on_guild_unavailable(guild)[source]
Clear the internal guild available event when self.guild_id becomes unavailable.
- Return type:
@@ -675,7 +675,7 @@ will not be set and guild_available_but_cache_empty event will be e
-
-async ping_services()[source]
+async ping_services()[source]
Ping all required services on setup to ensure they are up before starting.
- Return type:
@@ -686,7 +686,7 @@ will not be set and guild_available_but_cache_empty event will be e
-
-async process_commands(message)[source]
+async process_commands(message)[source]
Overwrite default Discord.py behaviour to process commands only after ensuring extensions are loaded.
This extension check is only relevant for clients that make use of pydis_core.BotBase.load_extensions
.
@@ -698,7 +698,7 @@ will not be set and guild_available_but_cache_empty event will be e
-
-register_command_error_manager(manager)[source]
+register_command_error_manager(manager)[source]
Bind an instance of the command error manager to both the bot and the command tree.
The reason this doesn’t happen in the constructor is because error handlers might need an instance of the bot.
So registration needs to happen once the bot instance has been created.
@@ -711,7 +711,7 @@ So registration needs to happen once the bot instance has been created.
-
-remove_command(name)[source]
+remove_command(name)[source]
Remove a command/alias as normal and then remove its root aliases from the bot.
Individual root aliases cannot be removed by this function.
To remove them, either remove the entire command or manually edit bot.all_commands.
@@ -724,7 +724,7 @@ To remove them, either remove the entire command or manually edit bot.all_
-
-async setup_hook()[source]
+async setup_hook()[source]
An async init to startup generic services.
Connects to statsd, and calls
AsyncStatsClient.create_socket
@@ -738,7 +738,7 @@ and
-
-async wait_until_guild_available()[source]
+async wait_until_guild_available()[source]
Wait until the guild that matches the guild_id
given at init is available (and the cache is ready).
The on_ready event is inadequate because it only waits 2 seconds for a GUILD_CREATE
gateway event before giving up and thus not populating the cache for unavailable guilds.
@@ -753,14 +753,14 @@ gateway event before giving up and thus not populating the cache for unavailable
-
-exception EmptyPaginatorEmbedError[source]
+exception EmptyPaginatorEmbedError[source]
Bases: Exception
Raised when attempting to paginate with empty contents.
-
-class LinePaginator(prefix='```', suffix='```', max_size=4000, scale_to_size=4000, max_lines=None, linesep='\\n')[source]
+class LinePaginator(prefix='```', suffix='```', max_size=4000, scale_to_size=4000, max_lines=None, linesep='\\n')[source]
Bases: Paginator
A class that aids in paginating code blocks for Discord messages.
@@ -777,14 +777,14 @@ gateway event before giving up and thus not populating the cache for unavailable
-
-__init__(prefix='```', suffix='```', max_size=4000, scale_to_size=4000, max_lines=None, linesep='\\n')[source]
+__init__(prefix='```', suffix='```', max_size=4000, scale_to_size=4000, max_lines=None, linesep='\\n')[source]
This function overrides the Paginator.__init__ from inside discord.ext.commands.
It overrides in order to allow us to configure the maximum number of lines per page.
-
-add_line(line='', *, empty=False)[source]
+add_line(line='', *, empty=False)[source]
Adds a line to the current page.
If a line on a page exceeds max_size characters, then max_size will go up to
scale_to_size for a single line before creating a new page for the overflow words. If it
@@ -812,7 +812,7 @@ page at a reasonable size.
-
-async classmethod paginate(pagination_emojis, lines, ctx, embed, *, prefix='', suffix='', max_lines=None, max_size=500, scale_to_size=4000, empty=True, restrict_to_user=None, timeout=300, footer_text=None, url=None, exception_on_empty_embed=False, reply=False, allowed_roles=None)[source]
+async classmethod paginate(pagination_emojis, lines, ctx, embed, *, prefix='', suffix='', max_lines=None, max_size=500, scale_to_size=4000, empty=True, restrict_to_user=None, timeout=300, footer_text=None, url=None, exception_on_empty_embed=False, reply=False, allowed_roles=None)[source]
Use a paginator and set of reactions to provide pagination over a set of lines.
The reactions are used to switch page, or to finish with pagination.
When used, this will send a message using ctx.send() and apply a set of reactions to it. These reactions may
@@ -856,7 +856,7 @@ to any user with a moderation role.
+class PaginationEmojis(**data)[source]
Bases: BaseModel
The emojis that will be used for pagination.
@@ -885,7 +885,7 @@ to any user with a moderation role.
+__pydantic_core_schema__: ClassVar[CoreSchema] = {'cls': <class 'pydis_core.utils.pagination.PaginationEmojis'>, 'config': {'title': 'PaginationEmojis'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'pydis_core.utils.pagination.PaginationEmojis'>>]}, 'ref': 'pydis_core.utils.pagination.PaginationEmojis:94630795533760', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'delete': {'metadata': {}, 'schema': {'default': '<:trashcan:637136429717389331>', 'schema': {'type': 'str'}, 'type': 'default'}, 'type': 'model-field'}, 'first': {'metadata': {}, 'schema': {'default': '⏮', 'schema': {'type': 'str'}, 'type': 'default'}, 'type': 'model-field'}, 'last': {'metadata': {}, 'schema': {'default': '⏭', 'schema': {'type': 'str'}, 'type': 'default'}, 'type': 'model-field'}, 'left': {'metadata': {}, 'schema': {'default': '⬅', 'schema': {'type': 'str'}, 'type': 'default'}, 'type': 'model-field'}, 'right': {'metadata': {}, 'schema': {'default': '➡', 'schema': {'type': 'str'}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'PaginationEmojis', 'type': 'model-fields'}, 'type': 'model'}
The core schema of the model.
@@ -948,13 +948,13 @@ __args__, __origin__, __parameters__ in typing-module generics. May eventually b
+__pydantic_serializer__: ClassVar[SchemaSerializer] = SchemaSerializer(serializer=Model( ModelSerializer { class: Py( 0x00005610f2f3ddc0, ), serializer: Fields( GeneralFieldsSerializer { fields: { "right": SerField { key_py: Py( 0x00007fd25297c3b0, ), alias: None, alias_py: None, serializer: Some( WithDefault( WithDefaultSerializer { default: Default( Py( 0x00007fd24ebd8710, ), ), serializer: Str( StrSerializer, ), }, ), ), required: true, }, "delete": SerField { key_py: Py( 0x00007fd253078eb0, ), alias: None, alias_py: None, serializer: Some( WithDefault( WithDefaultSerializer { default: Default( Py( 0x00007fd24ebd87b0, ), ), serializer: Str( StrSerializer, ), }, ), ), required: true, }, "first": SerField { key_py: Py( 0x00007fd2529eb4b0, ), alias: None, alias_py: None, serializer: Some( WithDefault( WithDefaultSerializer { default: Default( Py( 0x00007fd24ebd86c0, ), ), serializer: Str( StrSerializer, ), }, ), ), required: true, }, "last": SerField { key_py: Py( 0x00007fd2529ccf30, ), alias: None, alias_py: None, serializer: Some( WithDefault( WithDefaultSerializer { default: Default( Py( 0x00007fd24ebd8760, ), ), serializer: Str( StrSerializer, ), }, ), ), required: true, }, "left": SerField { key_py: Py( 0x00007fd25297c3f0, ), alias: None, alias_py: None, serializer: Some( WithDefault( WithDefaultSerializer { default: Default( Py( 0x00007fd24ebd8670, ), ), serializer: Str( StrSerializer, ), }, ), ), required: true, }, }, computed_fields: Some( ComputedFields( [], ), ), mode: SimpleDict, extra_serializer: None, filter: SchemaFilter { include: None, exclude: None, }, required_fields: 5, }, ), has_extra: false, root_model: false, name: "PaginationEmojis", }, ), definitions=[])
The pydantic-core SchemaSerializer used to dump instances of the model.
+__pydantic_validator__: ClassVar[SchemaValidator | PluggableSchemaValidator] = SchemaValidator(title="PaginationEmojis", validator=Model( ModelValidator { revalidate: Never, validator: ModelFields( ModelFieldsValidator { fields: [ Field { name: "first", lookup_key: Simple { key: "first", py_key: Py( 0x00007fd24f41a6f0, ), path: LookupPath( [ S( "first", Py( 0x00007fd24f419ab0, ), ), ], ), }, name_py: Py( 0x00007fd2529eb4b0, ), validator: WithDefault( WithDefaultValidator { default: Default( Py( 0x00007fd24ebd86c0, ), ), on_error: Raise, validator: Str( StrValidator { strict: false, coerce_numbers_to_str: false, }, ), validate_default: false, copy_default: false, name: "default[str]", undefined: Py( 0x00007fd24f5d0c70, ), }, ), frozen: false, }, Field { name: "left", lookup_key: Simple { key: "left", py_key: Py( 0x00007fd24fb3f5b0, ), path: LookupPath( [ S( "left", Py( 0x00007fd24c0f2430, ), ), ], ), }, name_py: Py( 0x00007fd25297c3f0, ), validator: WithDefault( WithDefaultValidator { default: Default( Py( 0x00007fd24ebd8670, ), ), on_error: Raise, validator: Str( StrValidator { strict: false, coerce_numbers_to_str: false, }, ), validate_default: false, copy_default: false, name: "default[str]", undefined: Py( 0x00007fd24f5d0c70, ), }, ), frozen: false, }, Field { name: "right", lookup_key: Simple { key: "right", py_key: Py( 0x00007fd24c0f22f0, ), path: LookupPath( [ S( "right", Py( 0x00007fd24c0f1bb0, ), ), ], ), }, name_py: Py( 0x00007fd25297c3b0, ), validator: WithDefault( WithDefaultValidator { default: Default( Py( 0x00007fd24ebd8710, ), ), on_error: Raise, validator: Str( StrValidator { strict: false, coerce_numbers_to_str: false, }, ), validate_default: false, copy_default: false, name: "default[str]", undefined: Py( 0x00007fd24f5d0c70, ), }, ), frozen: false, }, Field { name: "last", lookup_key: Simple { key: "last", py_key: Py( 0x00007fd24c0f3f70, ), path: LookupPath( [ S( "last", Py( 0x00007fd24c0f3ef0, ), ), ], ), }, name_py: Py( 0x00007fd2529ccf30, ), validator: WithDefault( WithDefaultValidator { default: Default( Py( 0x00007fd24ebd8760, ), ), on_error: Raise, validator: Str( StrValidator { strict: false, coerce_numbers_to_str: false, }, ), validate_default: false, copy_default: false, name: "default[str]", undefined: Py( 0x00007fd24f5d0c70, ), }, ), frozen: false, }, Field { name: "delete", lookup_key: Simple { key: "delete", py_key: Py( 0x00007fd24c0f1eb0, ), path: LookupPath( [ S( "delete", Py( 0x00007fd24c0f2eb0, ), ), ], ), }, name_py: Py( 0x00007fd253078eb0, ), validator: WithDefault( WithDefaultValidator { default: Default( Py( 0x00007fd24ebd87b0, ), ), on_error: Raise, validator: Str( StrValidator { strict: false, coerce_numbers_to_str: false, }, ), validate_default: false, copy_default: false, name: "default[str]", undefined: Py( 0x00007fd24f5d0c70, ), }, ), frozen: false, }, ], model_name: "PaginationEmojis", extra_behavior: Ignore, extras_validator: None, strict: false, from_attributes: false, loc_by_alias: true, }, ), class: Py( 0x00005610f2f3ddc0, ), generic_origin: None, post_init: None, frozen: false, custom_init: false, root_model: false, undefined: Py( 0x00007fd24f5d0c70, ), name: "PaginationEmojis", }, ), definitions=[], cache_strings=True)
The pydantic-core SchemaValidator used to validate instances of the model.
@@ -974,12 +974,12 @@ __args__, __origin__, __parameters__ in typing-module generics. May eventually b
-
-exception StartupError(base)[source]
+exception StartupError(base)[source]
Bases: Exception
Exception class for startup errors.
-
-__init__(base)[source]
+__init__(base)[source]
diff --git a/main/output/pydis_core.site_api.html b/main/output/pydis_core.site_api.html
index d791c848..168673b9 100644
--- a/main/output/pydis_core.site_api.html
+++ b/main/output/pydis_core.site_api.html
@@ -480,12 +480,12 @@
An API wrapper around the Site API.
-
-class APIClient(site_api_url, site_api_token, **session_kwargs)[source]
+class APIClient(site_api_url, site_api_token, **session_kwargs)[source]
Bases: object
A wrapper for the Django Site API.
-
-__init__(site_api_url, site_api_token, **session_kwargs)[source]
+__init__(site_api_url, site_api_token, **session_kwargs)[source]
Initialize a new APIClient
instance.
- Parameters:
@@ -500,7 +500,7 @@
-
-async close()[source]
+async close()[source]
Close the aiohttp session.
- Return type:
@@ -511,7 +511,7 @@
-
-async delete(endpoint, *, raise_for_status=True, **kwargs)[source]
+async delete(endpoint, *, raise_for_status=True, **kwargs)[source]
Equivalent to APIClient.request()
with DELETE passed as the method.
- Return type:
@@ -522,7 +522,7 @@
-
-async get(endpoint, *, raise_for_status=True, **kwargs)[source]
+async get(endpoint, *, raise_for_status=True, **kwargs)[source]
Equivalent to APIClient.request()
with GET passed as the method.
- Return type:
@@ -533,7 +533,7 @@
-
-async static maybe_raise_for_status(response, *, should_raise)[source]
+async static maybe_raise_for_status(response, *, should_raise)[source]
Raise ResponseCodeError
for non-OK response if an exception should be raised.
- Parameters:
@@ -553,7 +553,7 @@
-
-async patch(endpoint, *, raise_for_status=True, **kwargs)[source]
+async patch(endpoint, *, raise_for_status=True, **kwargs)[source]
Equivalent to APIClient.request()
with PATCH passed as the method.
- Return type:
@@ -564,7 +564,7 @@
-
-async post(endpoint, *, raise_for_status=True, **kwargs)[source]
+async post(endpoint, *, raise_for_status=True, **kwargs)[source]
Equivalent to APIClient.request()
with POST passed as the method.
- Return type:
@@ -575,7 +575,7 @@
-
-async put(endpoint, *, raise_for_status=True, **kwargs)[source]
+async put(endpoint, *, raise_for_status=True, **kwargs)[source]
Equivalent to APIClient.request()
with PUT passed as the method.
- Return type:
@@ -586,7 +586,7 @@
-
-async request(method, endpoint, *, raise_for_status=True, **kwargs)[source]
+async request(method, endpoint, *, raise_for_status=True, **kwargs)[source]
Send an HTTP request to the site API and return the JSON response.
- Parameters:
@@ -613,12 +613,12 @@
-
-exception ResponseCodeError(response, response_json=None, response_text=None)[source]
+exception ResponseCodeError(response, response_json=None, response_text=None)[source]
Bases: ValueError
Raised in APIClient.request()
when a non-OK HTTP response is received.
-
-__init__(response, response_json=None, response_text=None)[source]
+__init__(response, response_json=None, response_text=None)[source]
Initialize a new ResponseCodeError
instance.
- Parameters:
@@ -633,7 +633,7 @@
-
-__str__()[source]
+__str__()[source]
Return a string representation of the error.
diff --git a/main/output/pydis_core.utils.caching.html b/main/output/pydis_core.utils.caching.html
index f8bc048a..441cf5d2 100644
--- a/main/output/pydis_core.utils.caching.html
+++ b/main/output/pydis_core.utils.caching.html
@@ -480,14 +480,14 @@
Utilities related to custom caches.
-
-class AsyncCache(max_size=128)[source]
+class AsyncCache(max_size=128)[source]
Bases: object
LRU cache implementation for coroutines.
Once the cache exceeds the maximum size, keys are deleted in FIFO order.
An offset may be optionally provided to be applied to the coroutine’s arguments when creating the cache key.
-
-__call__(arg_offset=0)[source]
+__call__(arg_offset=0)[source]
Decorator for async cache.
- Parameters:
@@ -504,7 +504,7 @@
-
-__init__(max_size=128)[source]
+__init__(max_size=128)[source]
Initialise a new AsyncCache
instance.
- Parameters:
@@ -515,7 +515,7 @@
-
-clear()[source]
+clear()[source]
Clear cache instance.
- Return type:
diff --git a/main/output/pydis_core.utils.channel.html b/main/output/pydis_core.utils.channel.html
index ddfa4627..8df60b14 100644
--- a/main/output/pydis_core.utils.channel.html
+++ b/main/output/pydis_core.utils.channel.html
@@ -480,7 +480,7 @@
Useful helper functions for interacting with various discord channel objects.
-
-async get_or_fetch_channel(bot, channel_id)[source]
+async get_or_fetch_channel(bot, channel_id)[source]
Attempt to get or fetch the given channel_id
from the bots cache, and return it.
- Parameters:
@@ -508,7 +508,7 @@
-
-is_in_category(channel, category_id)[source]
+is_in_category(channel, category_id)[source]
Return whether the given channel
in the the category with the id category_id
.
- Parameters:
diff --git a/main/output/pydis_core.utils.checks.html b/main/output/pydis_core.utils.checks.html
index efe1d806..0ecea56e 100644
--- a/main/output/pydis_core.utils.checks.html
+++ b/main/output/pydis_core.utils.checks.html
@@ -479,26 +479,26 @@
checks
-
-exception ContextCheckFailure(redirect_channel)[source]
+exception ContextCheckFailure(redirect_channel)[source]
Bases: CheckFailure
Raised when a context-specific check fails.
-
-__init__(redirect_channel)[source]
+__init__(redirect_channel)[source]
-
-exception InWhitelistCheckFailure(redirect_channel)[source]
+exception InWhitelistCheckFailure(redirect_channel)[source]
Bases: ContextCheckFailure
Raised when the in_whitelist check fails.
-
-cooldown_with_role_bypass(rate, per, type_=('default', 0), *, bypass_roles)[source]
+cooldown_with_role_bypass(rate, per, type_=('default', 0), *, bypass_roles)[source]
Decorate a command to have a cooldown, which can be bypassed by users with specified roles.
Note: This replaces the Command.before_invoke callback, which might introduce problems in the future.
@@ -524,7 +524,7 @@
-
-async has_any_role_check(ctx, *roles)[source]
+async has_any_role_check(ctx, *roles)[source]
Verify if the context’s author has any of the specified roles.
This check will always fail if the context is a DM, since DMs don’t have roles.
@@ -545,7 +545,7 @@
-
-async has_no_roles_check(ctx, *roles)[source]
+async has_no_roles_check(ctx, *roles)[source]
Verify if the context’s author doesn’t have any of the specified roles.
This check will always fail if the context is a DM, since DMs don’t have roles.
@@ -566,7 +566,7 @@
-
-in_whitelist_check(ctx, redirect, channels=(), categories=(), roles=(), *, fail_silently=False)[source]
+in_whitelist_check(ctx, redirect, channels=(), categories=(), roles=(), *, fail_silently=False)[source]
Check if a command was issued in a context that is whitelisted by channel, category, or roles.
- Parameters:
diff --git a/main/output/pydis_core.utils.commands.html b/main/output/pydis_core.utils.commands.html
index cecec357..b909e118 100644
--- a/main/output/pydis_core.utils.commands.html
+++ b/main/output/pydis_core.utils.commands.html
@@ -479,7 +479,7 @@
commands
-
-async clean_text_or_reply(ctx, text=None)[source]
+async clean_text_or_reply(ctx, text=None)[source]
Cleans a text argument or replied message’s content.
- Parameters:
diff --git a/main/output/pydis_core.utils.cooldown.html b/main/output/pydis_core.utils.cooldown.html
index 91a9c76b..7afdee25 100644
--- a/main/output/pydis_core.utils.cooldown.html
+++ b/main/output/pydis_core.utils.cooldown.html
@@ -480,17 +480,17 @@
Helpers for setting a cooldown on commands.
-
-exception CommandOnCooldown(message, function, /, *args, **kwargs)[source]
+exception CommandOnCooldown(message, function, /, *args, **kwargs)[source]
Bases: CommandError
, Generic
[P
, R
]
Raised when a command is invoked while on cooldown.
-
-__init__(message, function, /, *args, **kwargs)[source]
+__init__(message, function, /, *args, **kwargs)[source]
-
-async call_without_cooldown()[source]
+async call_without_cooldown()[source]
Run the command this cooldown blocked.
- Return type:
@@ -506,20 +506,20 @@
-
-P = ~P[source]
+P = ~P[source]
The command’s signature.
-
-class R[source]
+class R[source]
The command’s return value.
alias of TypeVar(‘R’)
-
-block_duplicate_invocations(*, cooldown_duration=5, send_notice=False, args_preprocessor=None)[source]
+block_duplicate_invocations(*, cooldown_duration=5, send_notice=False, args_preprocessor=None)[source]
Prevent duplicate invocations of a command with the same arguments in a channel for cooldown_duration
seconds.
- Parameters:
diff --git a/main/output/pydis_core.utils.error_handling.commands.abc.html b/main/output/pydis_core.utils.error_handling.commands.abc.html
index bd8539f1..a5e3cd62 100644
--- a/main/output/pydis_core.utils.error_handling.commands.abc.html
+++ b/main/output/pydis_core.utils.error_handling.commands.abc.html
@@ -479,12 +479,12 @@
abc
-
-class AbstractCommandErrorHandler[source]
+class AbstractCommandErrorHandler[source]
Bases: ABC
An abstract command error handler.
-
-abstract async handle_app_command_error(interaction, error)[source]
+abstract async handle_app_command_error(interaction, error)[source]
Handle error raised in the context of app commands.
- Return type:
@@ -495,7 +495,7 @@
-
-abstract async handle_text_command_error(context, error)[source]
+abstract async handle_text_command_error(context, error)[source]
Handle error raised in the context of text commands.
- Return type:
@@ -506,7 +506,7 @@
-
-abstract async should_handle_error(error)[source]
+abstract async should_handle_error(error)[source]
A predicate that determines whether the error should be handled.
- Return type:
diff --git a/main/output/pydis_core.utils.error_handling.commands.html b/main/output/pydis_core.utils.error_handling.commands.html
index dcbd4651..46412222 100644
--- a/main/output/pydis_core.utils.error_handling.commands.html
+++ b/main/output/pydis_core.utils.error_handling.commands.html
@@ -479,12 +479,12 @@
commands package
-
-class AbstractCommandErrorHandler[source]
+class AbstractCommandErrorHandler[source]
Bases: ABC
An abstract command error handler.
-
-abstract async handle_app_command_error(interaction, error)[source]
+abstract async handle_app_command_error(interaction, error)[source]
Handle error raised in the context of app commands.
- Return type:
@@ -495,7 +495,7 @@
-
-abstract async handle_text_command_error(context, error)[source]
+abstract async handle_text_command_error(context, error)[source]
Handle error raised in the context of text commands.
- Return type:
@@ -506,7 +506,7 @@
-
-abstract async should_handle_error(error)[source]
+abstract async should_handle_error(error)[source]
A predicate that determines whether the error should be handled.
- Return type:
@@ -519,17 +519,17 @@
-
-class CommandErrorManager(default)[source]
+class CommandErrorManager(default)[source]
Bases: object
A class that registers error handlers and handles all command related errors.
-
-__init__(default)[source]
+__init__(default)[source]
-
-async handle_error(error, context_or_interaction)[source]
+async handle_error(error, context_or_interaction)[source]
Handle a Discord exception.
Iterate through available handlers by registration order, and choose the first one capable of handling
the error as determined by should_handle_error; there is no priority system.
@@ -542,7 +542,7 @@ the error as determined by should_handle_error; there is no priorit
-
-register_handler(handler)[source]
+register_handler(handler)[source]
Register a command error handler.
- Return type:
diff --git a/main/output/pydis_core.utils.error_handling.commands.manager.html b/main/output/pydis_core.utils.error_handling.commands.manager.html
index 023a375e..ed105f82 100644
--- a/main/output/pydis_core.utils.error_handling.commands.manager.html
+++ b/main/output/pydis_core.utils.error_handling.commands.manager.html
@@ -479,17 +479,17 @@
manager
-
-class CommandErrorManager(default)[source]
+class CommandErrorManager(default)[source]
Bases: object
A class that registers error handlers and handles all command related errors.
-
-__init__(default)[source]
+__init__(default)[source]
-
-async handle_error(error, context_or_interaction)[source]
+async handle_error(error, context_or_interaction)[source]
Handle a Discord exception.
Iterate through available handlers by registration order, and choose the first one capable of handling
the error as determined by should_handle_error; there is no priority system.
@@ -502,7 +502,7 @@ the error as determined by should_handle_error; there is no priorit
-
-register_handler(handler)[source]
+register_handler(handler)[source]
Register a command error handler.
- Return type:
diff --git a/main/output/pydis_core.utils.error_handling.html b/main/output/pydis_core.utils.error_handling.html
index c32bd47b..386ba244 100644
--- a/main/output/pydis_core.utils.error_handling.html
+++ b/main/output/pydis_core.utils.error_handling.html
@@ -479,7 +479,7 @@
error_handling package
-
-async handle_forbidden_from_block(error, message=None)[source]
+async handle_forbidden_from_block(error, message=None)[source]
Handles discord.Forbidden
90001 errors, or re-raises if error
isn’t a 90001 error.
- Parameters:
diff --git a/main/output/pydis_core.utils.function.html b/main/output/pydis_core.utils.function.html
index 21e7e473..ec0d381d 100644
--- a/main/output/pydis_core.utils.function.html
+++ b/main/output/pydis_core.utils.function.html
@@ -480,14 +480,14 @@
Utils for manipulating functions.
-
-exception GlobalNameConflictError[source]
+exception GlobalNameConflictError[source]
Bases: Exception
Raised on a conflict between the globals used to resolve annotations of a wrapped function and its wrapper.
-
-command_wraps(wrapped, assigned=('__module__', '__name__', '__qualname__', '__doc__', '__annotations__'), updated=('__dict__',), *, ignored_conflict_names=frozenset({}))[source]
+command_wraps(wrapped, assigned=('__module__', '__name__', '__qualname__', '__doc__', '__annotations__'), updated=('__dict__',), *, ignored_conflict_names=frozenset({}))[source]
Update the decorated function to look like wrapped
, and update globals for discord.py forwardref evaluation.
See update_wrapper_globals()
for more details on how the globals are updated.
@@ -511,7 +511,7 @@ with the wrapper replaced with the function
-
-get_arg_value(name_or_pos, arguments)[source]
+get_arg_value(name_or_pos, arguments)[source]
Return a value from arguments based on a name or position.
- Parameters:
@@ -534,7 +534,7 @@ with the wrapper replaced with the function
-
-get_arg_value_wrapper(decorator_func, name_or_pos, func=None)[source]
+get_arg_value_wrapper(decorator_func, name_or_pos, func=None)[source]
Call decorator_func with the value of the arg at the given name/position.
- Parameters:
@@ -556,7 +556,7 @@ parameter names to argument values of the function it’s decorating.
-
-get_bound_args(func, args, kwargs)[source]
+get_bound_args(func, args, kwargs)[source]
Bind args and kwargs to func and return a mapping of parameter names to argument values.
Default parameter values are also set.
@@ -578,7 +578,7 @@ parameter names to argument values of the function it’s decorating.
-
-update_wrapper_globals(wrapper, wrapped, *, ignored_conflict_names=frozenset({}))[source]
+update_wrapper_globals(wrapper, wrapped, *, ignored_conflict_names=frozenset({}))[source]
Create a copy of wrapper
, the copy’s globals are updated with wrapped
's globals.
For forwardrefs in command annotations, discord.py uses the __global__
attribute of the function
to resolve their values. This breaks for decorators that replace the function because they have
diff --git a/main/output/pydis_core.utils.html b/main/output/pydis_core.utils.html
index 566a020c..dac63818 100644
--- a/main/output/pydis_core.utils.html
+++ b/main/output/pydis_core.utils.html
@@ -480,7 +480,7 @@
Useful utilities and tools for Discord bot development.
-
-apply_monkey_patches()[source]
+apply_monkey_patches()[source]
Applies all common monkey patches for our bots.
- Return type:
@@ -499,7 +499,7 @@ that will act as top-level groups rather than being aliases of the command’s g
-
-unqualify(name)[source]
+unqualify(name)[source]
Return an unqualified name given a qualified module/package name
.
- Parameters:
diff --git a/main/output/pydis_core.utils.interactions.html b/main/output/pydis_core.utils.interactions.html
index b0ad40cf..fa05ccad 100644
--- a/main/output/pydis_core.utils.interactions.html
+++ b/main/output/pydis_core.utils.interactions.html
@@ -479,7 +479,7 @@
interactions
-
-class DeleteMessageButton(*, style=('secondary', 2), label='Delete', **kwargs)[source]
+class DeleteMessageButton(*, style=('secondary', 2), label='Delete', **kwargs)[source]
Bases: Button
A button that can be added to a view to delete the message containing the view on click.
This button itself carries out no interaction checks, these should be done by the parent view.
@@ -494,12 +494,12 @@
-
-__init__(*, style=('secondary', 2), label='Delete', **kwargs)[source]
+__init__(*, style=('secondary', 2), label='Delete', **kwargs)[source]
-
-async callback(interaction)[source]
+async callback(interaction)[source]
Delete the original message on button click.
- Return type:
@@ -512,7 +512,7 @@
-
-class ViewWithUserAndRoleCheck(*, allowed_users, allowed_roles, timeout=180.0, message=None)[source]
+class ViewWithUserAndRoleCheck(*, allowed_users, allowed_roles, timeout=180.0, message=None)[source]
Bases: View
A view that allows only allows the specified users, or users with the specified roles, to interact with it.
@@ -529,12 +529,12 @@ If None
-
-__init__(*, allowed_users, allowed_roles, timeout=180.0, message=None)[source]
+__init__(*, allowed_users, allowed_roles, timeout=180.0, message=None)[source]
-
-async interaction_check(interaction)[source]
+async interaction_check(interaction)[source]
Ensure the user clicking the button is the view invoker, or a moderator.
- Parameters:
@@ -548,7 +548,7 @@ If None
-
-async on_timeout()[source]
+async on_timeout()[source]
Remove the view from self.message
if set.
- Return type:
@@ -559,7 +559,7 @@ If None
-
-stop()[source]
+stop()[source]
Stop listening for interactions, and remove the view from self.message
if set.
- Return type:
@@ -572,7 +572,7 @@ If None
-
-user_has_access(user, *, allowed_users=(), allowed_roles=())[source]
+user_has_access(user, *, allowed_users=(), allowed_roles=())[source]
Return whether the user is in the allowed_users list, or has a role from allowed_roles.
- Parameters:
diff --git a/main/output/pydis_core.utils.lock.html b/main/output/pydis_core.utils.lock.html
index 60605bd9..4e50aff4 100644
--- a/main/output/pydis_core.utils.lock.html
+++ b/main/output/pydis_core.utils.lock.html
@@ -479,12 +479,12 @@
lock
-
-exception LockedResourceError(resource_type, resource_id)[source]
+exception LockedResourceError(resource_type, resource_id)[source]
Bases: RuntimeError
Exception raised when an operation is attempted on a locked resource.
-
-type[source]
+type[source]
Name of the locked resource’s type
- Type:
@@ -495,7 +495,7 @@
-
-id[source]
+id[source]
ID of the locked resource
- Type:
@@ -506,38 +506,38 @@
-
-__init__(resource_type, resource_id)[source]
+__init__(resource_type, resource_id)[source]
-
-class SharedEvent[source]
+class SharedEvent[source]
Bases: object
Context manager managing an internal event exposed through the wait coro.
While any code is executing in this context manager, the underlying event will not be set;
when all of the holders finish the event will be set.
-
-__enter__()[source]
+__enter__()[source]
Increment the count of the active holders and clear the internal event.
-
-__exit__(_exc_type, _exc_val, _exc_tb)[source]
+__exit__(_exc_type, _exc_val, _exc_tb)[source]
Decrement the count of the active holders; if 0 is reached set the internal event.
-
-__init__()[source]
+__init__()[source]
-
-async wait()[source]
+async wait()[source]
Wait for all active holders to exit.
- Return type:
@@ -550,7 +550,7 @@ when all of the holders finish the event will be set.
-
-lock(namespace, resource_id, *, raise_error=False, wait=False)[source]
+lock(namespace, resource_id, *, raise_error=False, wait=False)[source]
Turn the decorated coroutine function into a mutually exclusive operation on a resource_id.
If decorating a command, this decorator must go before (below) the command decorator.
@@ -577,7 +577,7 @@ and return None.
-
-lock_arg(namespace, name_or_pos, func=None, *, raise_error=False, wait=False)[source]
+lock_arg(namespace, name_or_pos, func=None, *, raise_error=False, wait=False)[source]
Apply the lock decorator using the value of the arg at the given name/position as the ID.
See lock docs for more information.
diff --git a/main/output/pydis_core.utils.logging.html b/main/output/pydis_core.utils.logging.html
index 2fd9dc29..74154132 100644
--- a/main/output/pydis_core.utils.logging.html
+++ b/main/output/pydis_core.utils.logging.html
@@ -480,12 +480,12 @@
Common logging related functions.
-
-class CustomLogger(name, level=0)[source]
+class CustomLogger(name, level=0)[source]
Bases: Logger
Custom implementation of the logging.Logger
class with an added trace
method.
-
-trace(msg, *args, **kwargs)[source]
+trace(msg, *args, **kwargs)[source]
Log the given message with the severity "TRACE"
.
To pass exception information, use the keyword argument exc_info with a true value:
logger.trace("Houston, we have an %s", "interesting problem", exc_info=1)
@@ -509,7 +509,7 @@
-
-get_logger(name=None)[source]
+get_logger(name=None)[source]
Utility to make mypy recognise that logger is of type CustomLogger
.
- Parameters:
@@ -526,7 +526,7 @@
-
-log_format[source]
+log_format[source]
A logging.Formatter
that can be used to standardise logging across all projects using pydis_core.
diff --git a/main/output/pydis_core.utils.members.html b/main/output/pydis_core.utils.members.html
index d2e79e59..4fc16b16 100644
--- a/main/output/pydis_core.utils.members.html
+++ b/main/output/pydis_core.utils.members.html
@@ -480,7 +480,7 @@
Useful helper functions for interactin with discord.Member
objects.
-
-async get_or_fetch_member(guild, member_id)[source]
+async get_or_fetch_member(guild, member_id)[source]
Attempt to get a member from cache; on failure fetch from the API.
- Return type:
@@ -494,7 +494,7 @@
-
-async handle_role_change(member, coro, role)[source]
+async handle_role_change(member, coro, role)[source]
Await the given coro
with role
as the sole argument.
Handle errors that we expect to be raised from
discord.Member.add_roles
and discord.Member.remove_roles
.
diff --git a/main/output/pydis_core.utils.messages.html b/main/output/pydis_core.utils.messages.html
index fb96d620..bab39fec 100644
--- a/main/output/pydis_core.utils.messages.html
+++ b/main/output/pydis_core.utils.messages.html
@@ -479,7 +479,7 @@
messages
-
-reaction_check(reaction, user, *, message_id, allowed_emoji, allowed_users, allowed_roles=None)[source]
+reaction_check(reaction, user, *, message_id, allowed_emoji, allowed_users, allowed_roles=None)[source]
Check if a reaction’s emoji and author are allowed and the message is message_id.
If the user is not allowed, remove the reaction. Ignore reactions made by the bot.
If allow_mods is True, allow users with moderator roles even if they’re not in allowed_users.
diff --git a/main/output/pydis_core.utils.pagination.html b/main/output/pydis_core.utils.pagination.html
index b239f92d..1cad1ebb 100644
--- a/main/output/pydis_core.utils.pagination.html
+++ b/main/output/pydis_core.utils.pagination.html
@@ -479,14 +479,14 @@
pagination
+exception EmptyPaginatorEmbedError[source]
Bases: Exception
Raised when attempting to paginate with empty contents.
+class LinePaginator(prefix='```', suffix='```', max_size=4000, scale_to_size=4000, max_lines=None, linesep='\\n')[source]
Bases: Paginator
A class that aids in paginating code blocks for Discord messages.
@@ -503,14 +503,14 @@
+__init__(prefix='```', suffix='```', max_size=4000, scale_to_size=4000, max_lines=None, linesep='\\n')[source]
This function overrides the Paginator.__init__ from inside discord.ext.commands.
It overrides in order to allow us to configure the maximum number of lines per page.
+add_line(line='', *, empty=False)[source]
Adds a line to the current page.
If a line on a page exceeds max_size characters, then max_size will go up to
scale_to_size for a single line before creating a new page for the overflow words. If it
@@ -538,7 +538,7 @@ page at a reasonable size.
+async classmethod paginate(pagination_emojis, lines, ctx, embed, *, prefix='', suffix='', max_lines=None, max_size=500, scale_to_size=4000, empty=True, restrict_to_user=None, timeout=300, footer_text=None, url=None, exception_on_empty_embed=False, reply=False, allowed_roles=None)[source]
Use a paginator and set of reactions to provide pagination over a set of lines.
The reactions are used to switch page, or to finish with pagination.
When used, this will send a message using ctx.send() and apply a set of reactions to it. These reactions may
@@ -582,7 +582,7 @@ to any user with a moderation role.
+class PaginationEmojis(**data)[source]
Bases: BaseModel
The emojis that will be used for pagination.
@@ -611,7 +611,7 @@ to any user with a moderation role.
+__pydantic_core_schema__: ClassVar[CoreSchema] = {'cls': <class 'pydis_core.utils.pagination.PaginationEmojis'>, 'config': {'title': 'PaginationEmojis'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'pydis_core.utils.pagination.PaginationEmojis'>>]}, 'ref': 'pydis_core.utils.pagination.PaginationEmojis:94630795674304', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'delete': {'metadata': {}, 'schema': {'default': '<:trashcan:637136429717389331>', 'schema': {'type': 'str'}, 'type': 'default'}, 'type': 'model-field'}, 'first': {'metadata': {}, 'schema': {'default': '⏮', 'schema': {'type': 'str'}, 'type': 'default'}, 'type': 'model-field'}, 'last': {'metadata': {}, 'schema': {'default': '⏭', 'schema': {'type': 'str'}, 'type': 'default'}, 'type': 'model-field'}, 'left': {'metadata': {}, 'schema': {'default': '⬅', 'schema': {'type': 'str'}, 'type': 'default'}, 'type': 'model-field'}, 'right': {'metadata': {}, 'schema': {'default': '➡', 'schema': {'type': 'str'}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'PaginationEmojis', 'type': 'model-fields'}, 'type': 'model'}
The core schema of the model.
@@ -674,13 +674,13 @@ __args__, __origin__, __parameters__ in typing-module generics. May eventually b
+__pydantic_serializer__: ClassVar[SchemaSerializer] = SchemaSerializer(serializer=Model( ModelSerializer { class: Py( 0x00005610f2f602c0, ), serializer: Fields( GeneralFieldsSerializer { fields: { "right": SerField { key_py: Py( 0x00007fd25297c3b0, ), alias: None, alias_py: None, serializer: Some( WithDefault( WithDefaultSerializer { default: Default( Py( 0x00007fd24ef852a0, ), ), serializer: Str( StrSerializer, ), }, ), ), required: true, }, "left": SerField { key_py: Py( 0x00007fd25297c3f0, ), alias: None, alias_py: None, serializer: Some( WithDefault( WithDefaultSerializer { default: Default( Py( 0x00007fd24ef85200, ), ), serializer: Str( StrSerializer, ), }, ), ), required: true, }, "first": SerField { key_py: Py( 0x00007fd2529eb4b0, ), alias: None, alias_py: None, serializer: Some( WithDefault( WithDefaultSerializer { default: Default( Py( 0x00007fd24ef85250, ), ), serializer: Str( StrSerializer, ), }, ), ), required: true, }, "delete": SerField { key_py: Py( 0x00007fd253078eb0, ), alias: None, alias_py: None, serializer: Some( WithDefault( WithDefaultSerializer { default: Default( Py( 0x00007fd24ef85340, ), ), serializer: Str( StrSerializer, ), }, ), ), required: true, }, "last": SerField { key_py: Py( 0x00007fd2529ccf30, ), alias: None, alias_py: None, serializer: Some( WithDefault( WithDefaultSerializer { default: Default( Py( 0x00007fd24ef852f0, ), ), serializer: Str( StrSerializer, ), }, ), ), required: true, }, }, computed_fields: Some( ComputedFields( [], ), ), mode: SimpleDict, extra_serializer: None, filter: SchemaFilter { include: None, exclude: None, }, required_fields: 5, }, ), has_extra: false, root_model: false, name: "PaginationEmojis", }, ), definitions=[])
The pydantic-core SchemaSerializer used to dump instances of the model.
+__pydantic_validator__: ClassVar[SchemaValidator | PluggableSchemaValidator] = SchemaValidator(title="PaginationEmojis", validator=Model( ModelValidator { revalidate: Never, validator: ModelFields( ModelFieldsValidator { fields: [ Field { name: "first", lookup_key: Simple { key: "first", py_key: Py( 0x00007fd24fb3f5b0, ), path: LookupPath( [ S( "first", Py( 0x00007fd24eb7f530, ), ), ], ), }, name_py: Py( 0x00007fd2529eb4b0, ), validator: WithDefault( WithDefaultValidator { default: Default( Py( 0x00007fd24ef85250, ), ), on_error: Raise, validator: Str( StrValidator { strict: false, coerce_numbers_to_str: false, }, ), validate_default: false, copy_default: false, name: "default[str]", undefined: Py( 0x00007fd2514623e0, ), }, ), frozen: false, }, Field { name: "left", lookup_key: Simple { key: "left", py_key: Py( 0x00007fd24ea46130, ), path: LookupPath( [ S( "left", Py( 0x00007fd24ea45f70, ), ), ], ), }, name_py: Py( 0x00007fd25297c3f0, ), validator: WithDefault( WithDefaultValidator { default: Default( Py( 0x00007fd24ef85200, ), ), on_error: Raise, validator: Str( StrValidator { strict: false, coerce_numbers_to_str: false, }, ), validate_default: false, copy_default: false, name: "default[str]", undefined: Py( 0x00007fd2514623e0, ), }, ), frozen: false, }, Field { name: "right", lookup_key: Simple { key: "right", py_key: Py( 0x00007fd24ea459b0, ), path: LookupPath( [ S( "right", Py( 0x00007fd24ea45830, ), ), ], ), }, name_py: Py( 0x00007fd25297c3b0, ), validator: WithDefault( WithDefaultValidator { default: Default( Py( 0x00007fd24ef852a0, ), ), on_error: Raise, validator: Str( StrValidator { strict: false, coerce_numbers_to_str: false, }, ), validate_default: false, copy_default: false, name: "default[str]", undefined: Py( 0x00007fd2514623e0, ), }, ), frozen: false, }, Field { name: "last", lookup_key: Simple { key: "last", py_key: Py( 0x00007fd24ea47f70, ), path: LookupPath( [ S( "last", Py( 0x00007fd24ea47af0, ), ), ], ), }, name_py: Py( 0x00007fd2529ccf30, ), validator: WithDefault( WithDefaultValidator { default: Default( Py( 0x00007fd24ef852f0, ), ), on_error: Raise, validator: Str( StrValidator { strict: false, coerce_numbers_to_str: false, }, ), validate_default: false, copy_default: false, name: "default[str]", undefined: Py( 0x00007fd2514623e0, ), }, ), frozen: false, }, Field { name: "delete", lookup_key: Simple { key: "delete", py_key: Py( 0x00007fd24ea463f0, ), path: LookupPath( [ S( "delete", Py( 0x00007fd24ea46e30, ), ), ], ), }, name_py: Py( 0x00007fd253078eb0, ), validator: WithDefault( WithDefaultValidator { default: Default( Py( 0x00007fd24ef85340, ), ), on_error: Raise, validator: Str( StrValidator { strict: false, coerce_numbers_to_str: false, }, ), validate_default: false, copy_default: false, name: "default[str]", undefined: Py( 0x00007fd2514623e0, ), }, ), frozen: false, }, ], model_name: "PaginationEmojis", extra_behavior: Ignore, extras_validator: None, strict: false, from_attributes: false, loc_by_alias: true, }, ), class: Py( 0x00005610f2f602c0, ), generic_origin: None, post_init: None, frozen: false, custom_init: false, root_model: false, undefined: Py( 0x00007fd2514623e0, ), name: "PaginationEmojis", }, ), definitions=[], cache_strings=True)
The pydantic-core SchemaValidator used to validate instances of the model.
diff --git a/main/output/pydis_core.utils.paste_service.html b/main/output/pydis_core.utils.paste_service.html
index 603be560..b527592c 100644
--- a/main/output/pydis_core.utils.paste_service.html
+++ b/main/output/pydis_core.utils.paste_service.html
@@ -479,13 +479,13 @@
paste_service
-
-MAX_PASTE_SIZE = 524288[source]
+MAX_PASTE_SIZE = 524288[source]
The maximum allows size of a paste, in bytes.
-
-class PasteFile(**data)[source]
+class PasteFile(**data)[source]
Bases: BaseModel
A file to be pasted to the paste service.
@@ -523,7 +523,7 @@
-
-__pydantic_core_schema__: ClassVar[CoreSchema] = {'cls': <class 'pydis_core.utils.paste_service.PasteFile'>, 'config': {'title': 'PasteFile'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'pydis_core.utils.paste_service.PasteFile'>>]}, 'ref': 'pydis_core.utils.paste_service.PasteFile:94712751132928', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'content': {'metadata': {}, 'schema': {'type': 'str'}, 'type': 'model-field'}, 'lexer': {'metadata': {}, 'schema': {'default': 'python', 'schema': {'type': 'str'}, 'type': 'default'}, 'type': 'model-field'}, 'name': {'metadata': {}, 'schema': {'default': '', 'schema': {'type': 'str'}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'PasteFile', 'type': 'model-fields'}, 'type': 'model'}
+__pydantic_core_schema__: ClassVar[CoreSchema] = {'cls': <class 'pydis_core.utils.paste_service.PasteFile'>, 'config': {'title': 'PasteFile'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'pydis_core.utils.paste_service.PasteFile'>>]}, 'ref': 'pydis_core.utils.paste_service.PasteFile:94630797578352', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'content': {'metadata': {}, 'schema': {'type': 'str'}, 'type': 'model-field'}, 'lexer': {'metadata': {}, 'schema': {'default': 'python', 'schema': {'type': 'str'}, 'type': 'default'}, 'type': 'model-field'}, 'name': {'metadata': {}, 'schema': {'default': '', 'schema': {'type': 'str'}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'PasteFile', 'type': 'model-fields'}, 'type': 'model'}
The core schema of the model.
@@ -586,13 +586,13 @@ __args__, __origin__, __parameters__ in typing-module generics. May eventually b
-
-__pydantic_serializer__: ClassVar[SchemaSerializer] = SchemaSerializer(serializer=Model( ModelSerializer { class: Py( 0x0000562407e31100, ), serializer: Fields( GeneralFieldsSerializer { fields: { "content": SerField { key_py: Py( 0x00007f97949c4ff0, ), alias: None, alias_py: None, serializer: Some( Str( StrSerializer, ), ), required: true, }, "name": SerField { key_py: Py( 0x00007f9795743980, ), alias: None, alias_py: None, serializer: Some( WithDefault( WithDefaultSerializer { default: Default( Py( 0x00007f979573fba0, ), ), serializer: Str( StrSerializer, ), }, ), ), required: true, }, "lexer": SerField { key_py: Py( 0x00007f97946a41b0, ), alias: None, alias_py: None, serializer: Some( WithDefault( WithDefaultSerializer { default: Default( Py( 0x00007f9794410eb0, ), ), serializer: Str( StrSerializer, ), }, ), ), required: true, }, }, computed_fields: Some( ComputedFields( [], ), ), mode: SimpleDict, extra_serializer: None, filter: SchemaFilter { include: None, exclude: None, }, required_fields: 3, }, ), has_extra: false, root_model: false, name: "PasteFile", }, ), definitions=[])
+__pydantic_serializer__: ClassVar[SchemaSerializer] = SchemaSerializer(serializer=Model( ModelSerializer { class: Py( 0x00005610f3131070, ), serializer: Fields( GeneralFieldsSerializer { fields: { "content": SerField { key_py: Py( 0x00007fd2528c8fb0, ), alias: None, alias_py: None, serializer: Some( Str( StrSerializer, ), ), required: true, }, "name": SerField { key_py: Py( 0x00007fd253743980, ), alias: None, alias_py: None, serializer: Some( WithDefault( WithDefaultSerializer { default: Default( Py( 0x00007fd25373fba0, ), ), serializer: Str( StrSerializer, ), }, ), ), required: true, }, "lexer": SerField { key_py: Py( 0x00007fd2525a4330, ), alias: None, alias_py: None, serializer: Some( WithDefault( WithDefaultSerializer { default: Default( Py( 0x00007fd252315030, ), ), serializer: Str( StrSerializer, ), }, ), ), required: true, }, }, computed_fields: Some( ComputedFields( [], ), ), mode: SimpleDict, extra_serializer: None, filter: SchemaFilter { include: None, exclude: None, }, required_fields: 3, }, ), has_extra: false, root_model: false, name: "PasteFile", }, ), definitions=[])
The pydantic-core SchemaSerializer used to dump instances of the model.
-
-__pydantic_validator__: ClassVar[SchemaValidator | PluggableSchemaValidator] = SchemaValidator(title="PasteFile", validator=Model( ModelValidator { revalidate: Never, validator: ModelFields( ModelFieldsValidator { fields: [ Field { name: "content", lookup_key: Simple { key: "content", py_key: Py( 0x00007f97896c4d30, ), path: LookupPath( [ S( "content", Py( 0x00007f97896c4cf0, ), ), ], ), }, name_py: Py( 0x00007f97949c4ff0, ), validator: Str( StrValidator { strict: false, coerce_numbers_to_str: false, }, ), frozen: false, }, Field { name: "name", lookup_key: Simple { key: "name", py_key: Py( 0x00007f97896c4db0, ), path: LookupPath( [ S( "name", Py( 0x00007f97896c4d70, ), ), ], ), }, name_py: Py( 0x00007f9795743980, ), validator: WithDefault( WithDefaultValidator { default: Default( Py( 0x00007f979573fba0, ), ), on_error: Raise, validator: Str( StrValidator { strict: false, coerce_numbers_to_str: false, }, ), validate_default: false, copy_default: false, name: "default[str]", undefined: Py( 0x00007f979355e4f0, ), }, ), frozen: false, }, Field { name: "lexer", lookup_key: Simple { key: "lexer", py_key: Py( 0x00007f97896c4df0, ), path: LookupPath( [ S( "lexer", Py( 0x00007f97896c4e30, ), ), ], ), }, name_py: Py( 0x00007f97946a41b0, ), validator: WithDefault( WithDefaultValidator { default: Default( Py( 0x00007f9794410eb0, ), ), on_error: Raise, validator: Str( StrValidator { strict: false, coerce_numbers_to_str: false, }, ), validate_default: false, copy_default: false, name: "default[str]", undefined: Py( 0x00007f979355e4f0, ), }, ), frozen: false, }, ], model_name: "PasteFile", extra_behavior: Ignore, extras_validator: None, strict: false, from_attributes: false, loc_by_alias: true, }, ), class: Py( 0x0000562407e31100, ), generic_origin: None, post_init: None, frozen: false, custom_init: false, root_model: false, undefined: Py( 0x00007f979355e4f0, ), name: "PasteFile", }, ), definitions=[], cache_strings=True)
+__pydantic_validator__: ClassVar[SchemaValidator | PluggableSchemaValidator] = SchemaValidator(title="PasteFile", validator=Model( ModelValidator { revalidate: Never, validator: ModelFields( ModelFieldsValidator { fields: [ Field { name: "content", lookup_key: Simple { key: "content", py_key: Py( 0x00007fd23f4a10b0, ), path: LookupPath( [ S( "content", Py( 0x00007fd23f4a1070, ), ), ], ), }, name_py: Py( 0x00007fd2528c8fb0, ), validator: Str( StrValidator { strict: false, coerce_numbers_to_str: false, }, ), frozen: false, }, Field { name: "name", lookup_key: Simple { key: "name", py_key: Py( 0x00007fd23f4a1130, ), path: LookupPath( [ S( "name", Py( 0x00007fd23f4a10f0, ), ), ], ), }, name_py: Py( 0x00007fd253743980, ), validator: WithDefault( WithDefaultValidator { default: Default( Py( 0x00007fd25373fba0, ), ), on_error: Raise, validator: Str( StrValidator { strict: false, coerce_numbers_to_str: false, }, ), validate_default: false, copy_default: false, name: "default[str]", undefined: Py( 0x00007fd2514624f0, ), }, ), frozen: false, }, Field { name: "lexer", lookup_key: Simple { key: "lexer", py_key: Py( 0x00007fd23f4a1170, ), path: LookupPath( [ S( "lexer", Py( 0x00007fd23f4a11b0, ), ), ], ), }, name_py: Py( 0x00007fd2525a4330, ), validator: WithDefault( WithDefaultValidator { default: Default( Py( 0x00007fd252315030, ), ), on_error: Raise, validator: Str( StrValidator { strict: false, coerce_numbers_to_str: false, }, ), validate_default: false, copy_default: false, name: "default[str]", undefined: Py( 0x00007fd2514624f0, ), }, ), frozen: false, }, ], model_name: "PasteFile", extra_behavior: Ignore, extras_validator: None, strict: false, from_attributes: false, loc_by_alias: true, }, ), class: Py( 0x00005610f3131070, ), generic_origin: None, post_init: None, frozen: false, custom_init: false, root_model: false, undefined: Py( 0x00007fd2514624f0, ), name: "PasteFile", }, ), definitions=[], cache_strings=True)
The pydantic-core SchemaValidator used to validate instances of the model.
@@ -612,7 +612,7 @@ __args__, __origin__, __parameters__ in typing-module generics. May eventually b
-
-class PasteResponse(**data)[source]
+class PasteResponse(**data)[source]
Bases: BaseModel
A successful response from the paste service.
@@ -649,7 +649,7 @@ __args__, __origin__, __parameters__ in typing-module generics. May eventually b
-
-__pydantic_core_schema__: ClassVar[CoreSchema] = {'cls': <class 'pydis_core.utils.paste_service.PasteResponse'>, 'config': {'title': 'PasteResponse'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'pydis_core.utils.paste_service.PasteResponse'>>]}, 'ref': 'pydis_core.utils.paste_service.PasteResponse:94712750788800', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'link': {'metadata': {}, 'schema': {'type': 'str'}, 'type': 'model-field'}, 'removal': {'metadata': {}, 'schema': {'type': 'str'}, 'type': 'model-field'}}, 'model_name': 'PasteResponse', 'type': 'model-fields'}, 'type': 'model'}
+__pydantic_core_schema__: ClassVar[CoreSchema] = {'cls': <class 'pydis_core.utils.paste_service.PasteResponse'>, 'config': {'title': 'PasteResponse'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'pydis_core.utils.paste_service.PasteResponse'>>]}, 'ref': 'pydis_core.utils.paste_service.PasteResponse:94630790259456', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'link': {'metadata': {}, 'schema': {'type': 'str'}, 'type': 'model-field'}, 'removal': {'metadata': {}, 'schema': {'type': 'str'}, 'type': 'model-field'}}, 'model_name': 'PasteResponse', 'type': 'model-fields'}, 'type': 'model'}
The core schema of the model.
@@ -712,13 +712,13 @@ __args__, __origin__, __parameters__ in typing-module generics. May eventually b
-
-__pydantic_serializer__: ClassVar[SchemaSerializer] = SchemaSerializer(serializer=Model( ModelSerializer { class: Py( 0x0000562407ddd0c0, ), serializer: Fields( GeneralFieldsSerializer { fields: { "link": SerField { key_py: Py( 0x00007f97956982a0, ), alias: None, alias_py: None, serializer: Some( Str( StrSerializer, ), ), required: true, }, "removal": SerField { key_py: Py( 0x00007f9789f24170, ), alias: None, alias_py: None, serializer: Some( Str( StrSerializer, ), ), required: true, }, }, computed_fields: Some( ComputedFields( [], ), ), mode: SimpleDict, extra_serializer: None, filter: SchemaFilter { include: None, exclude: None, }, required_fields: 2, }, ), has_extra: false, root_model: false, name: "PasteResponse", }, ), definitions=[])
+__pydantic_serializer__: ClassVar[SchemaSerializer] = SchemaSerializer(serializer=Model( ModelSerializer { class: Py( 0x00005610f2a36300, ), serializer: Fields( GeneralFieldsSerializer { fields: { "link": SerField { key_py: Py( 0x00007fd2536982a0, ), alias: None, alias_py: None, serializer: Some( Str( StrSerializer, ), ), required: true, }, "removal": SerField { key_py: Py( 0x00007fd23fcac1b0, ), alias: None, alias_py: None, serializer: Some( Str( StrSerializer, ), ), required: true, }, }, computed_fields: Some( ComputedFields( [], ), ), mode: SimpleDict, extra_serializer: None, filter: SchemaFilter { include: None, exclude: None, }, required_fields: 2, }, ), has_extra: false, root_model: false, name: "PasteResponse", }, ), definitions=[])
The pydantic-core SchemaSerializer used to dump instances of the model.
-
-__pydantic_validator__: ClassVar[SchemaValidator | PluggableSchemaValidator] = SchemaValidator(title="PasteResponse", validator=Model( ModelValidator { revalidate: Never, validator: ModelFields( ModelFieldsValidator { fields: [ Field { name: "link", lookup_key: Simple { key: "link", py_key: Py( 0x00007f97896fba70, ), path: LookupPath( [ S( "link", Py( 0x00007f97896fba30, ), ), ], ), }, name_py: Py( 0x00007f97956982a0, ), validator: Str( StrValidator { strict: false, coerce_numbers_to_str: false, }, ), frozen: false, }, Field { name: "removal", lookup_key: Simple { key: "removal", py_key: Py( 0x00007f97896fbaf0, ), path: LookupPath( [ S( "removal", Py( 0x00007f97896fbab0, ), ), ], ), }, name_py: Py( 0x00007f9789f24170, ), validator: Str( StrValidator { strict: false, coerce_numbers_to_str: false, }, ), frozen: false, }, ], model_name: "PasteResponse", extra_behavior: Ignore, extras_validator: None, strict: false, from_attributes: false, loc_by_alias: true, }, ), class: Py( 0x0000562407ddd0c0, ), generic_origin: None, post_init: None, frozen: false, custom_init: false, root_model: false, undefined: Py( 0x00007f979355e4f0, ), name: "PasteResponse", }, ), definitions=[], cache_strings=True)
+__pydantic_validator__: ClassVar[SchemaValidator | PluggableSchemaValidator] = SchemaValidator(title="PasteResponse", validator=Model( ModelValidator { revalidate: Never, validator: ModelFields( ModelFieldsValidator { fields: [ Field { name: "link", lookup_key: Simple { key: "link", py_key: Py( 0x00007fd23f493df0, ), path: LookupPath( [ S( "link", Py( 0x00007fd23f493db0, ), ), ], ), }, name_py: Py( 0x00007fd2536982a0, ), validator: Str( StrValidator { strict: false, coerce_numbers_to_str: false, }, ), frozen: false, }, Field { name: "removal", lookup_key: Simple { key: "removal", py_key: Py( 0x00007fd23f493e70, ), path: LookupPath( [ S( "removal", Py( 0x00007fd23f493e30, ), ), ], ), }, name_py: Py( 0x00007fd23fcac1b0, ), validator: Str( StrValidator { strict: false, coerce_numbers_to_str: false, }, ), frozen: false, }, ], model_name: "PasteResponse", extra_behavior: Ignore, extras_validator: None, strict: false, from_attributes: false, loc_by_alias: true, }, ), class: Py( 0x00005610f2a36300, ), generic_origin: None, post_init: None, frozen: false, custom_init: false, root_model: false, undefined: Py( 0x00007fd2514624f0, ), name: "PasteResponse", }, ), definitions=[], cache_strings=True)
The pydantic-core SchemaValidator used to validate instances of the model.
@@ -738,28 +738,28 @@ __args__, __origin__, __parameters__ in typing-module generics. May eventually b
-
-exception PasteTooLongError[source]
+exception PasteTooLongError[source]
Bases: Exception
Raised when content is too large to upload to the paste service.
-
-exception PasteUnsupportedLexerError[source]
+exception PasteUnsupportedLexerError[source]
Bases: Exception
Raised when an unsupported lexer is used.
-
-exception PasteUploadError[source]
+exception PasteUploadError[source]
Bases: Exception
Raised when an error is encountered uploading to the paste service.
-
-async send_to_paste_service(*, files, http_session, paste_url='https://paste.pythondiscord.com', max_size=524288)[source]
+async send_to_paste_service(*, files, http_session, paste_url='https://paste.pythondiscord.com', max_size=524288)[source]
Upload some contents to the paste service.
- Parameters:
diff --git a/main/output/pydis_core.utils.regex.html b/main/output/pydis_core.utils.regex.html
index 8597cfd7..777c74d1 100644
--- a/main/output/pydis_core.utils.regex.html
+++ b/main/output/pydis_core.utils.regex.html
@@ -480,7 +480,7 @@
Common regular expressions.
-
-DISCORD_INVITE[source]
+DISCORD_INVITE[source]
Regex for Discord server invites.