aboutsummaryrefslogtreecommitdiffstats
path: root/arthur/exts/cloudflare/zones.py
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2022-08-21 22:15:05 +0100
committerGravatar Chris Lovering <[email protected]>2022-08-21 22:27:59 +0100
commit0edbe40e4a980ce1c92be1a8ba68e276dbcbd3f0 (patch)
tree9a33d7623f40c86e81f306e7eaa024fa11b31148 /arthur/exts/cloudflare/zones.py
parentUse 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.py4
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))