commands.command module

Contains a base decorator class for registering commands.

class commands.command._BaseCommand(names, *args, **kwargs)[source]

Bases: core.AutoUnload

Base decorator class used to register commands.

__init__(names, *args, **kwargs)[source]

Store the base values for the decorator.

Parameters:
  • names (str/list/tuple) – Command name(s) to register.
  • args – Additional arguments passed to the callback proxy.
  • kwargs – Additional keyword arguments passed to the callback proxy.
_unload_instance()[source]

Unregister the commands.