aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar kwzrd <[email protected]>2020-03-17 22:39:31 +0100
committerGravatar kwzrd <[email protected]>2020-03-17 22:39:31 +0100
commit14d58b621d07411afe32d91f296049c40f758a76 (patch)
tree71ce8647f58563f5c16eae3ef1d0b0b33d2eaf16
parentDeseasonify: improve `SeasonBase` docstring wording (diff)
Deseasonify: allow `set` to take multi-word args
We do not have any multi-word seasons at the moment, but there is no reason to restrict the command to just one word.
-rw-r--r--bot/branding.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/branding.py b/bot/branding.py
index a9b6234c..68d2d8bd 100644
--- a/bot/branding.py
+++ b/bot/branding.py
@@ -290,7 +290,7 @@ class BrandingManager(commands.Cog):
await ctx.send("Branding applied")
@branding_cmds.command(name="set")
- async def branding_set(self, ctx: commands.Context, season_name: t.Optional[str] = None) -> None:
+ async def branding_set(self, ctx: commands.Context, *, season_name: t.Optional[str] = None) -> None:
"""Manually set season if `season_name` is provided, otherwise reset to current."""
if season_name is None:
new_season = get_current_season()