commands.filter module

Contains a base decorator class for registering filters.

class commands.filter._BaseFilter(callback)[source]

Bases: core.AutoUnload

Class used to register a filter.

__init__(callback)[source]

Store the callback and registers the filter.

Parameters:callback (callable) – A callback that does filter logic.
_unload_instance()[source]

Unregister the filter.