From 05394fec96b65e6f97d53a5b4d5fe47b07fcebc2 Mon Sep 17 00:00:00 2001
From: HassanAbouelela loop (asyncio.AbstractEventLoop) β The event loop to use when creating the
- host ( port ( loop (asyncio.AbstractEventLoop) β The event loop to use when creating the
+ host ( port ( prefix ( Use Use guild_id ( allowed_roles ( guild_id ( allowed_roles ( http_session (aiohttp.ClientSession) β The session to use for the bot. redis_session ( api_client ( statsd_url ( redis_session ( api_client ( statsd_url (
@@ -302,10 +302,10 @@
-
asyncio.loop.create_datagram_endpoint.str) β The host to connect to.int) β The port to connect to.asyncio.loop.create_datagram_endpoint.str) β The host to connect to.int) β The port to connect to.Optional[str]) β The prefix to use for all stats.
diff --git a/v7.1.3/output/botcore.exts.html b/v7.1.3/output/botcore.exts.html
index 14f8de9a..95c59a69 100644
--- a/v7.1.3/output/botcore.exts.html
+++ b/v7.1.3/output/botcore.exts.html
@@ -205,7 +205,7 @@
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.
None
-
int) β The ID of the guild use for wait_until_guild_available().list) β A list of role IDs that the bot is allowed to mention.int) β The ID of the guild use 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 botcore.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,
+Optional[RedisSession]) β The async_rediscache.RedisSession to use for the bot.Optional[APIClient]) β The botcore.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.
None
Add command as normal and then add its root aliases to the bot.
None
Not implemented! Re-instantiate the bot instead of attempting to re-use a closed one.
None
Close the Discord connection, and the aiohttp session, connector, statsd client, and resolver.
None
This should be ran in a task on the event loop to avoid deadlocks caused by wait_for calls.
None
Log the given message to #dev-log.
None
None
Clear the internal guild available event when self.guild_id becomes unavailable.
None
Ping all required services on setup to ensure they are up before starting.
None
ping_services().
None
None
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.
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.
None
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.
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().
Optional[dict]
The JSON response the API returns, or None if the response is 204 No Content.
@@ -335,7 +335,7 @@Equivalent to APIClient.request() with GET passed as the method.
dict
response (aiohttp.ClientResponse) β The response to check.
should_raise (bool) β Whether or not to raise an exception.
should_raise (bool) β Whether or not to raise an exception.
ResponseCodeError β If the response is not OK and should_raise is True.
None
Equivalent to APIClient.request() with PATCH passed as the method.
dict
Equivalent to APIClient.request() with POST passed as the method.
dict
Equivalent to APIClient.request() with PUT passed as the method.
dict
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.
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().
dict
The JSON response the API returns.
@@ -423,7 +423,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. And then reverted in 7.1.3.
response_json (Optional[dict]) β The JSON response returned from the request, if any.
response_json (Optional[dict]) β The JSON response returned from the request, if any.
request_text β 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.
@@ -290,10 +290,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.
Callable
A decorator to wrap the target function.
@@ -307,7 +307,7 @@Initialise a new AsyncCache instance.
max_size (int) β How many items to store in the cache.
max_size (int) β How many items to store in the cache.
Clear cache instance.
None
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.
bool
A bool depending on whether the channel is in the category.
diff --git a/v7.1.3/output/botcore.utils.html b/v7.1.3/output/botcore.utils.html index 5b372970..85ecd232 100644 --- a/v7.1.3/output/botcore.utils.html +++ b/v7.1.3/output/botcore.utils.html @@ -205,7 +205,7 @@None
Return an unqualified name given a qualified module/package name.
name (str) β The module name to unqualify.
name (str) β The module name to unqualify.
str
The unqualified module name.
diff --git a/v7.1.3/output/botcore.utils.logging.html b/v7.1.3/output/botcore.utils.logging.html index 8aaaf2b3..a2063ec9 100644 --- a/v7.1.3/output/botcore.utils.logging.html +++ b/v7.1.3/output/botcore.utils.logging.html @@ -205,7 +205,7 @@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.
Utility to make mypy recognise that logger is of type CustomLogger.
name (Optional[str]) β The name given to the logger.
name (Optional[str]) β The name given to the logger.
Attempt to get a member from cache; on failure fetch from the API.
Optional[Member]
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.
member (Member) β The member to pass to coro.
coro (Callable[..., Coroutine]) β This is intended to be discord.Member.add_roles or discord.Member.remove_roles.
coro (Callable[..., Coroutine]) β This is intended to be discord.Member.add_roles or discord.Member.remove_roles.
None
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
@@ -294,16 +294,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.
None
None
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.
None
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.
None
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 (Awaitable) β 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 (Awaitable) β 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.
asyncio.Task