From c04103b99e0970ac1d4088f1230b3484c71dbee9 Mon Sep 17 00:00:00 2001 From: kwzrd Date: Thu, 26 Mar 2020 21:17:55 +0100 Subject: Deseasonify: extend `in_month` doc --- bot/decorators.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bot/decorators.py') diff --git a/bot/decorators.py b/bot/decorators.py index 0a1f77c8..f85996b5 100644 --- a/bot/decorators.py +++ b/bot/decorators.py @@ -118,6 +118,11 @@ def in_month(*allowed_months: Month) -> t.Callable: the decorated callable is a cmd or listener, it **has** to first be turned into one. This means that this decorator should always be placed **above** the d.py one that registers it as either. + + This will decorate groups as well, as those subclass Command. In order to lock + all subcommands of a group, its `invoke_without_command` param must **not** be + manually set to True - this causes a circumvention of the group's callback + and the seasonal check applied to it. """ def decorator(callable_: t.Callable) -> t.Callable: # Functions decorated as commands are turned into instances of `Command` -- cgit v1.2.3