From 304ae1893888c011935390a60ee6a24607142623 Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Tue, 27 Jul 2021 23:18:35 +0100 Subject: Migrate to discord.py v2.0 --- arthur/exts/cloudflare/zones.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'arthur/exts/cloudflare/zones.py') diff --git a/arthur/exts/cloudflare/zones.py b/arthur/exts/cloudflare/zones.py index 564dd2e..457efc5 100644 --- a/arthur/exts/cloudflare/zones.py +++ b/arthur/exts/cloudflare/zones.py @@ -21,9 +21,7 @@ class Zones(commands.Cog): @zones.command(name="purge") async def purge( - self, - ctx: commands.Context, - zone_name: Optional[str] = "pythondiscord.com" + self, ctx: commands.Context, zone_name: Optional[str] = "pythondiscord.com" ) -> None: """Command to clear the Cloudflare cache of the specified zone.""" pydis_zones = await zones.list_zones(zone_name) @@ -38,10 +36,7 @@ class Zones(commands.Cog): if errors := purge_attempt_response["errors"]: for error in errors: description_content += f"`{error['code']}`: {error['message']}\n" - message = generate_error_message( - description=description_content, - emote=":x:" - ) + message = generate_error_message(description=description_content, emote=":x:") await ctx.send(message) -- cgit v1.2.3