diff options
author | 2022-04-18 15:40:19 +0100 | |
---|---|---|
committer | 2022-04-18 17:46:40 +0100 | |
commit | ff6e42c01e924a8f61553615f1bdf918550b3fd6 (patch) | |
tree | b3a1ab8124f73280c0484f77f283ff796cebc70b | |
parent | Wait for mod log to load when syncing defcon settings (diff) |
Correct capitalisation of async and discord.py
-rw-r--r-- | bot/__main__.py | 2 | ||||
-rw-r--r-- | bot/bot.py | 2 | ||||
-rw-r--r-- | bot/exts/moderation/infraction/infractions.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/bot/__main__.py b/bot/__main__.py index 67d512eca..06a8de5c1 100644 --- a/bot/__main__.py +++ b/bot/__main__.py @@ -34,7 +34,7 @@ async def _create_redis_session() -> RedisSession: async def main() -> None: - """Entry Async method for starting the bot.""" + """Entry async method for starting the bot.""" statsd_url = constants.Stats.statsd_host if constants.DEBUG_MODE: # Since statsd is UDP, there are no errors for sending to a down port. diff --git a/bot/bot.py b/bot/bot.py index 1239727a2..a58ad7f9c 100644 --- a/bot/bot.py +++ b/bot/bot.py @@ -66,7 +66,7 @@ class Bot(BotBase): self.insert_item_into_filter_list_cache(item) async def setup_hook(self) -> None: - """Default Async initialisation method for Discord.py.""" + """Default async initialisation method for discord.py.""" await super().setup_hook() if self.redis_session.closed: diff --git a/bot/exts/moderation/infraction/infractions.py b/bot/exts/moderation/infraction/infractions.py index 7aea4d207..46fd3381c 100644 --- a/bot/exts/moderation/infraction/infractions.py +++ b/bot/exts/moderation/infraction/infractions.py @@ -125,7 +125,7 @@ class Infractions(InfractionScheduler, commands.Cog): log.error("Failed to apply ban to user %d", user.id) return - # Calling commands directly skips Discord.py's convertors, so we need to convert args manually. + # Calling commands directly skips discord.py's convertors, so we need to convert args manually. clean_time = await Age().convert(ctx, "1h") log_url = await clean_cog._clean_messages( |