def override_in_channel(func: typing.Callable) -> typing.Callable:
    """
    Set command callback attribute for detection in `in_channel_check`.

    This decorator has to go before (below) below the `command` decorator.
    """
    func.in_channel_override = True
    return func
Exemple #2
0
 def inner(func: t.Callable) -> t.Callable:
     func.in_channel_override = channels
     return func