diff options
author | 2020-03-31 17:41:45 +0200 | |
---|---|---|
committer | 2020-03-31 18:04:34 +0200 | |
commit | 9f0191c099da19570d07fec7dc2f4e9c9945886c (patch) | |
tree | 6ae44f8f7377bb9211d13be8784b467814cf5cb7 | |
parent | Refactor: Github to GitHub (diff) |
Deseasonify: delegate refresh to dedicated command
Reduces code duplication.
Co-authored-by: MarkKoz <[email protected]>
-rw-r--r-- | bot/exts/evergreen/branding.py | 4 |
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: |