diff options
author | 2022-08-21 22:15:05 +0100 | |
---|---|---|
committer | 2022-08-21 22:27:59 +0100 | |
commit | 0edbe40e4a980ce1c92be1a8ba68e276dbcbd3f0 (patch) | |
tree | 9a33d7623f40c86e81f306e7eaa024fa11b31148 /arthur/exts/cloudflare/zones.py | |
parent | Use BotBase from bot-core (diff) |
Move to async cog loading
This is required as of Discord.py 2.0
Diffstat (limited to 'arthur/exts/cloudflare/zones.py')
-rw-r--r-- | arthur/exts/cloudflare/zones.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arthur/exts/cloudflare/zones.py b/arthur/exts/cloudflare/zones.py index 7f9ca35..f265651 100644 --- a/arthur/exts/cloudflare/zones.py +++ b/arthur/exts/cloudflare/zones.py @@ -75,6 +75,6 @@ class Zones(commands.Cog): await ctx.send(":cloud: Pick which zone(s) that should have their cache purged", view=view) -def setup(bot: KingArthur) -> None: +async def setup(bot: KingArthur) -> None: """Add the extension to the bot.""" - bot.add_cog(Zones(bot)) + await bot.add_cog(Zones(bot)) |