From f45d502025a10c6a15aa87dc03a186a6c679702c Mon Sep 17 00:00:00 2001
From: HassanAbouelela
Date: Tue, 10 May 2022 19:58:02 +0000
Subject: Deploying to docs from @
python-discord/bot-core@e7fbea9a74f13312aa67a7737b632db46680ff80 🚀
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
output/botcore.html | 32 ++++++++++++++++----------------
1 file changed, 16 insertions(+), 16 deletions(-)
(limited to 'output/botcore.html')
diff --git a/output/botcore.html b/output/botcore.html
index 2b74582e..4e717977 100644
--- a/output/botcore.html
+++ b/output/botcore.html
@@ -218,12 +218,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: discord.ext.commands.bot.Bot
A sub-class that implements many common features that Python Discord bots use.
-
-__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
@@ -241,7 +241,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
@@ -251,7 +251,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
@@ -261,7 +261,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
@@ -271,7 +271,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
@@ -281,7 +281,7 @@ a dummy statsd client will be created.
-
-async load_extensions(module)[source]
+async load_extensions(module)[source]
Load all the extensions within the given module and save them to self.all_extensions.
This should be ran in a task on the event loop to avoid deadlocks caused by wait_for calls.
@@ -292,7 +292,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
@@ -302,7 +302,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.
@@ -314,7 +314,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
@@ -324,7 +324,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
@@ -334,7 +334,7 @@ will not be set and guild_available_but_cache_empty event will be e
-
-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.
@@ -346,7 +346,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
@@ -359,7 +359,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.
@@ -372,12 +372,12 @@ gateway event before giving up and thus not populating the cache for unavailable
-
-exception StartupError(base)[source]
+exception StartupError(base)[source]
Bases: Exception
Exception class for startup errors.
-
-__init__(base)[source]
+__init__(base)[source]