aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/branding.py
diff options
context:
space:
mode:
authorGravatar kwzrd <[email protected]>2020-03-31 17:41:45 +0200
committerGravatar kwzrd <[email protected]>2020-03-31 18:04:34 +0200
commit9f0191c099da19570d07fec7dc2f4e9c9945886c (patch)
tree6ae44f8f7377bb9211d13be8784b467814cf5cb7 /bot/exts/evergreen/branding.py
parentRefactor: Github to GitHub (diff)
Deseasonify: delegate refresh to dedicated command
Reduces code duplication. Co-authored-by: MarkKoz <[email protected]>
Diffstat (limited to 'bot/exts/evergreen/branding.py')
-rw-r--r--bot/exts/evergreen/branding.py4
1 files changed, 1 insertions, 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: