diff options
author | 2021-07-27 23:31:29 +0100 | |
---|---|---|
committer | 2021-07-27 23:31:29 +0100 | |
commit | 46aff6c262c3f8ec8ff54db6b32f31b5ec97ef7e (patch) | |
tree | 1c4775a8bee693f56e6ef07eab3b2aa332814a87 /arthur/exts/cloudflare/zones.py | |
parent | remove quotes from black profile (diff) | |
parent | Migrate to discord.py v2.0 (diff) |
Merge branch 'main' into patch-1
Diffstat (limited to 'arthur/exts/cloudflare/zones.py')
-rw-r--r-- | arthur/exts/cloudflare/zones.py | 9 |
1 files changed, 2 insertions, 7 deletions
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) |