From 9f0191c099da19570d07fec7dc2f4e9c9945886c Mon Sep 17 00:00:00 2001 From: kwzrd Date: Tue, 31 Mar 2020 17:41:45 +0200 Subject: Deseasonify: delegate refresh to dedicated command Reduces code duplication. Co-authored-by: MarkKoz --- bot/exts/evergreen/branding.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bot/exts/evergreen/branding.py b/bot/exts/evergreen/branding.py index e8c3f9c8..ab402ae1 100644 --- a/bot/exts/evergreen/branding.py +++ b/bot/exts/evergreen/branding.py @@ -448,9 +448,7 @@ class BrandingManager(commands.Cog): raise BrandingError(f"Season {self.current_season.season_name} already active") self.current_season = new_season - async with ctx.typing(): - await self.refresh() - await self.branding_info(ctx) + await self.branding_refresh(ctx) @branding_cmds.command(name="info", aliases=["status"]) async def branding_info(self, ctx: commands.Context) -> None: -- cgit v1.2.3