From 4497a82c504818d61ab18c5251ae2bc42bae279e Mon Sep 17 00:00:00 2001
From: ChrisLovering loop (asyncio.AbstractEventLoop) β The event loop to use when creating the
- host ( port ( prefix ( loop (asyncio.AbstractEventLoop) β The event loop to use when creating the
+ host ( port ( prefix ( Use Use guild_id ( allowed_roles ( http_session (aiohttp.ClientSession) β The session to use for the bot. redis_session ( api_client ( statsd_url ( guild_id ( allowed_roles ( http_session (aiohttp.ClientSession) β The session to use for the bot. redis_session ( api_client ( statsd_url (
@@ -466,10 +474,10 @@
-
asyncio.loop.create_datagram_endpoint.str) β The host to connect to.int) β The port to connect to.str) β The prefix to use for all stats.asyncio.loop.create_datagram_endpoint.str) β The host to connect to.int) β The port to connect to.str) β The prefix to use for all stats.
@@ -551,7 +559,7 @@
-
+
diff --git a/v9.0.0/output/pydis_core.exts.html b/v9.0.0/output/pydis_core.exts.html
index 4b38ab5d..67ec0061 100644
--- a/v9.0.0/output/pydis_core.exts.html
+++ b/v9.0.0/output/pydis_core.exts.html
@@ -5,13 +5,13 @@
-
+
asyncio.loop.create_datagram_endpoint from the loop given on init to create a socket.asyncio.loop.create_datagram_endpoint from the loop given on init to create a socket.
-
int) β The ID of the guild used for wait_until_guild_available().list) β A list of role IDs that the bot is allowed to mention.Optional[RedisSession]) β The async_rediscache.RedisSession to use for the bot.Optional[APIClient]) β The pydis_core.site_api.APIClient instance to use for the bot.Optional[str]) β The URL of the statsd server to use for the bot. If not given,
+int) β The ID of the guild used for wait_until_guild_available().list) β A list of role IDs that the bot is allowed to mention.Optional[RedisSession]) β The async_rediscache.RedisSession to use for the bot.Optional[APIClient]) β The pydis_core.site_api.APIClient instance to use for the bot.Optional[str]) β The URL of the statsd server to use for the bot. If not given,
a dummy statsd client will be created.
Add the given cog to the bot and log the operation.
Add command as normal and then add its root aliases to the bot.
Not implemented! Re-instantiate the bot instead of attempting to re-use a closed one.
Close the Discord connection, and the aiohttp session, connector, statsd client, and resolver.
This should be ran in a task on the event loop to avoid deadlocks caused by wait_for calls.
Log the given message to #dev-log.
Clear the internal guild available event when self.guild_id becomes unavailable.
Ping all required services on setup to ensure they are up before starting.
ping_services().
@@ -602,7 +610,7 @@ and
@@ -612,7 +620,7 @@ gateway event before giving up and thus not populating the cache for unavailable
Bases: Exception
Bases: Exception
Exception class for startup errors.
Bases: object
Bases: object
A wrapper for the Django Site API.
site_api_url (str) β The URL of the site API.
site_api_token (str) β The token to use for authentication.
session_kwargs β Keyword arguments to pass to the aiohttp.ClientSession constructor.
site_api_url (str) β The URL of the site API.
site_api_token (str) β The token to use for authentication.
session_kwargs β Keyword arguments to pass to the aiohttp.ClientSession constructor.
Close the aiohttp session.
endpoint (str) β The endpoint to send the request to.
raise_for_status (bool) β Whether or not to raise an exception if the response is not OK.
**kwargs β Any extra keyword arguments to pass to aiohttp.request().
endpoint (str) β The endpoint to send the request to.
raise_for_status (bool) β Whether or not to raise an exception if the response is not OK.
**kwargs β Any extra keyword arguments to pass to aiohttp.request().
The JSON response the API returns, or None if the response is 204 No Content.
@@ -499,7 +507,7 @@Equivalent to APIClient.request() with GET passed as the method.
response (aiohttp.ClientResponse) β The response to check.
should_raise (bool) β Whether or not to raise an exception.
response (aiohttp.ClientResponse) β The response to check.
should_raise (bool) β Whether or not to raise an exception.
ResponseCodeError β If the response is not OK and should_raise is True.
Equivalent to APIClient.request() with PATCH passed as the method.
Equivalent to APIClient.request() with POST passed as the method.
Equivalent to APIClient.request() with PUT passed as the method.
method (str) β The HTTP method to use.
endpoint (str) β The endpoint to send the request to.
raise_for_status (bool) β Whether or not to raise an exception if the response is not OK.
**kwargs β Any extra keyword arguments to pass to aiohttp.request().
method (str) β The HTTP method to use.
endpoint (str) β The endpoint to send the request to.
raise_for_status (bool) β Whether or not to raise an exception if the response is not OK.
**kwargs β Any extra keyword arguments to pass to aiohttp.request().
The JSON response the API returns.
@@ -587,7 +595,7 @@Bases: ValueError
Bases: ValueError
Raised in APIClient.request() when a non-OK HTTP response is received.
response (aiohttp.ClientResponse) β The response object from the request.
response_json (Optional[dict]) β The JSON response returned from the request, if any.
response_text (Optional[str]) β The text of the request, if any.
response (aiohttp.ClientResponse) β The response object from the request.
response_json (Optional[dict]) β The JSON response returned from the request, if any.
response_text (Optional[str]) β The text of the request, if any.
Bases: object
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.
@@ -454,10 +462,10 @@Decorator for async cache.
arg_offset (int) β The offset for the position of the key argument.
arg_offset (int) β The offset for the position of the key argument.
A decorator to wrap the target function.
@@ -471,7 +479,7 @@Initialise a new AsyncCache instance.
Clear cache instance.
bot (Bot) β The discord.ext.commands.Bot instance to use for getting/fetching.
channel_id (int) β The channel to get/fetch.
channel_id (int) β The channel to get/fetch.
channel (TextChannel) β The channel to check.
category_id (int) β The category to check for.
category_id (int) β The category to check for.
A bool depending on whether the channel is in the category.
@@ -561,7 +569,7 @@ - + diff --git a/v9.0.0/output/pydis_core.utils.commands.html b/v9.0.0/output/pydis_core.utils.commands.html index 0ea14d63..7a5d74a0 100644 --- a/v9.0.0/output/pydis_core.utils.commands.html +++ b/v9.0.0/output/pydis_core.utils.commands.html @@ -5,13 +5,13 @@ - +discord.ext.commands.BadArgument β text wasnβt provided and thereβs no reply message / reply message content.
The cleaned version of text, if given, else replied message.
@@ -534,7 +542,7 @@ - + diff --git a/v9.0.0/output/pydis_core.utils.cooldown.html b/v9.0.0/output/pydis_core.utils.cooldown.html index b1d13004..66533e62 100644 --- a/v9.0.0/output/pydis_core.utils.cooldown.html +++ b/v9.0.0/output/pydis_core.utils.cooldown.html @@ -5,13 +5,13 @@ - +Bases: CommandError, Generic[P, R]
Bases: CommandError, Generic[P, R]
Raised when a command is invoked while on cooldown.
Run the command this cooldown blocked.
TypeVar(R)
TypeVar(R)
The commandβs return value.
@@ -487,14 +495,14 @@cooldown_duration (float) β Length of the cooldown in seconds.
send_notice (bool) β If True, notify the user about the cooldown with a reply.
args_preprocessor (Callable[[ParamSpec(P)], Iterable[object]] | None) β If specified, this function is called with the args and kwargs the function is called with,
+
cooldown_duration (float) β Length of the cooldown in seconds.
send_notice (bool) β If True, notify the user about the cooldown with a reply.
args_preprocessor (Callable[[ParamSpec(P)], Iterable[object]] | None) β If specified, this function is called with the args and kwargs the function is called with,
its return value is then used to check for the cooldown instead of the raw arguments.
Callable[[Callable[[ParamSpec(P)], Awaitable[TypeVar(R)]]], Callable[[ParamSpec(P)], Awaitable[TypeVar(R)]]]
Callable[[Callable[[ParamSpec(P)], Awaitable[TypeVar(R)]]], Callable[[ParamSpec(P)], Awaitable[TypeVar(R)]]]
A decorator that adds a wrapper which applies the cooldowns.
@@ -584,7 +592,7 @@ its return value is then used to check for the cooldown instead of the raw argum - + diff --git a/v9.0.0/output/pydis_core.utils.function.html b/v9.0.0/output/pydis_core.utils.function.html index 87e3caf8..ce74fdaa 100644 --- a/v9.0.0/output/pydis_core.utils.function.html +++ b/v9.0.0/output/pydis_core.utils.function.html @@ -5,13 +5,13 @@ - +Bases: Exception
Bases: Exception
Raised on a conflict between the globals used to resolve annotations of a wrapped function and its wrapper.
wrapped (Callable[[ParamSpec(_P)], TypeVar(_R)]) β The function to wrap with.
assigned (Sequence[str]) β Sequence of attribute names that are directly assigned from wrapped to wrapper.
updated (Sequence[str]) β Sequence of attribute names that are .update``d on ``wrapper from the attributes on wrapped.
ignored_conflict_names (Set[str]) β A set of names to ignore if a conflict between them is found.
wrapped (Callable[[ParamSpec(_P)], TypeVar(_R)]) β The function to wrap with.
assigned (Sequence[str]) β Sequence of attribute names that are directly assigned from wrapped to wrapper.
updated (Sequence[str]) β Sequence of attribute names that are .update``d on ``wrapper from the attributes on wrapped.
ignored_conflict_names (Set[str]) β A set of names to ignore if a conflict between them is found.
Callable[[Callable[[ParamSpec(_P)], TypeVar(_R)]], Callable[[ParamSpec(_P)], TypeVar(_R)]]
Callable[[Callable[[ParamSpec(_P)], TypeVar(_R)]], Callable[[ParamSpec(_P)], TypeVar(_R)]]
A decorator that behaves like functools.wraps(),
+
A decorator that behaves like functools.wraps(),
with the wrapper replaced with the function update_wrapper_globals() returned.
wrapper (Callable[[ParamSpec(_P)], TypeVar(_R)]) β The function to wrap.
wrapped (Callable[[ParamSpec(_P)], TypeVar(_R)]) β The function to wrap with.
ignored_conflict_names (Set[str]) β A set of names to ignore if a conflict between them is found.
wrapper (Callable[[ParamSpec(_P)], TypeVar(_R)]) β The function to wrap.
wrapped (Callable[[ParamSpec(_P)], TypeVar(_R)]) β The function to wrap with.
ignored_conflict_names (Set[str]) β A set of names to ignore if a conflict between them is found.
ignored_conflict_names.
Callable[[ParamSpec(_P)], TypeVar(_R)]
Applies all common monkey patches for our bots.
Return an unqualified name given a qualified module/package name.
name (str) β The module name to unqualify.
name (str) β The module name to unqualify.
The unqualified module name.
@@ -639,7 +647,7 @@ that will act as top-level groups rather than being aliases of the commandβs g - + diff --git a/v9.0.0/output/pydis_core.utils.interactions.html b/v9.0.0/output/pydis_core.utils.interactions.html index 3a6df197..91f06874 100644 --- a/v9.0.0/output/pydis_core.utils.interactions.html +++ b/v9.0.0/output/pydis_core.utils.interactions.html @@ -5,13 +5,13 @@ - +style (ButtonStyle) β The style of the button, set to ButtonStyle.secondary if not specified.
label (str) β The label of the button, set to βDeleteβ if not specified.
label (str) β The label of the button, set to βDeleteβ if not specified.
Delete the original message on button click.
allowed_users (Sequence[int]) β A sequence of userβs ids who are allowed to interact with the view.
allowed_roles (Sequence[int]) β A sequence of role ids that are allowed to interact with the view.
timeout (Optional[float]) β Timeout in seconds from last interaction with the UI before no longer accepting input.
+
allowed_users (Sequence[int]) β A sequence of userβs ids who are allowed to interact with the view.
allowed_roles (Sequence[int]) β A sequence of role ids that are allowed to interact with the view.
timeout (Optional[float]) β Timeout in seconds from last interaction with the UI before no longer accepting input.
If None then there is no timeout.
message (Optional[Message]) β The message to remove the view from on timeout. This can also be set with
+
message (Optional[Message]) β The message to remove the view from on timeout. This can also be set with
view.message = await ctx.send( ... )` , or similar, after the view is instantiated.
Noneinteraction (Interaction) β The interaction that occurred.
NoneRemove the view from self.message if set.
None
-
+
diff --git a/v9.0.0/output/pydis_core.utils.logging.html b/v9.0.0/output/pydis_core.utils.logging.html
index 958a3821..9290bf67 100644
--- a/v9.0.0/output/pydis_core.utils.logging.html
+++ b/v9.0.0/output/pydis_core.utils.logging.html
@@ -5,13 +5,13 @@
-
+
logging - Pydis Core v9.0.0
-
+
@@ -317,6 +317,14 @@
v9.0.0
+ -
+ v11.5.0
+
+
+ -
+ v11.4.0
+
+
-
v11.3.1
@@ -444,8 +452,8 @@
-
class CustomLogger(name, level=0)[source]ΒΆ
-Bases: Logger
-Custom implementation of the logging.Logger class with an added trace method.
+Bases: Logger
+Custom implementation of the logging.Logger class with an added trace method.
@@ -476,7 +484,7 @@
Utility to make mypy recognise that logger is of type CustomLogger.
- Parameters:
-name (Optional[str]) β The name given to the logger.
+-
- Return type:
-
@@ -562,7 +570,7 @@
-
+
diff --git a/v9.0.0/output/pydis_core.utils.members.html b/v9.0.0/output/pydis_core.utils.members.html
index 970f7657..aad58176 100644
--- a/v9.0.0/output/pydis_core.utils.members.html
+++ b/v9.0.0/output/pydis_core.utils.members.html
@@ -5,13 +5,13 @@
-
+
members - Pydis Core v9.0.0
-
+
@@ -317,6 +317,14 @@
v9.0.0
+ -
+ v11.5.0
+
+
+ -
+ v11.4.0
+
+
-
v11.3.1
@@ -447,10 +455,10 @@
Attempt to get a member from cache; on failure fetch from the API.
- Return type:
--
+
-
- Returns:
-The discord.Member or None to indicate the member could not be found.
+The discord.Member or None to indicate the member could not be found.
@@ -465,12 +473,12 @@
- Parameters:
member (Member) β The member that is being modified for logging purposes.
-coro (Callable[[Role], Coroutine]) β This is intended to be discord.Member.add_roles or discord.Member.remove_roles.
+coro (Callable[[Role], Coroutine]) β This is intended to be discord.Member.add_roles or discord.Member.remove_roles.
role (Role) β The role to be passed to coro.
- Return type:
--
+
-
Warning
This regex pattern will capture until a whitespace, if you are to use the βinviteβ capture group in
any HTTP requests or similar. Please ensure you sanitise the output using something
-such as urllib.parse.quote().
urllib.parse.quote().
Bases: object
Bases: object
Schedule the execution of coroutines and keep track of them.
When instantiating a Scheduler, a name must be provided. This name is used to distinguish the
instanceβs log messages from other instances. Using the name of the class or module containing
@@ -458,16 +466,16 @@ the same ID used to schedule it.
Return True if a task with the given task_id is currently scheduled.
Return True if a task with the given task_id is currently scheduled.
Initialize a new Scheduler instance.
Unschedule the task identified by task_id. Log a warning if the task doesnβt exist.
Unschedule all known tasks.
time (datetime) β The time to start the task.
task_id (Hashable) β A unique ID to create the task with.
coroutine (Coroutine) β The function to be called.
time (datetime) β The time to start the task.
task_id (Hashable) β A unique ID to create the task with.
coroutine (Coroutine) β The function to be called.
delay (Union[int, float]) β How long to wait before starting the task.
task_id (Hashable) β A unique ID to create the task with.
coroutine (Coroutine) β The function to be called.
delay (Union[int, float]) β How long to wait before starting the task.
task_id (Hashable) β A unique ID to create the task with.
coroutine (Coroutine) β The function to be called.
Wrapper for creating an asyncio.Task which logs exceptions raised in the task.
Wrapper for creating an asyncio.Task which logs exceptions raised in the task.
If the event_loop kwarg is provided, the task is created from that event loop,
otherwise the running loop is used.
coro (Coroutine[Any, Any, TypeVar(TASK_RETURN)]) β The function to call.
suppressed_exceptions (tuple[type[Exception], ...]) β Exceptions to be handled by the task.
event_loop (asyncio.AbstractEventLoop) β The loop to create the task from.
kwargs β Passed to asyncio.create_task().
coro (Coroutine[Any, Any, TypeVar(TASK_RETURN)]) β The function to call.
suppressed_exceptions (tuple[type[Exception], ...]) β Exceptions to be handled by the task.
event_loop (asyncio.AbstractEventLoop) β The loop to create the task from.
kwargs β Passed to asyncio.create_task().
The wrapped task.