From 5fcf2652c6652bb678eccafc9efe3c12dd845698 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 3 Oct 2019 15:31:59 +0200 Subject: [PATCH] Add aliases field --- royalnet/commands/command.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/royalnet/commands/command.py b/royalnet/commands/command.py index 43897cdb..9b275787 100644 --- a/royalnet/commands/command.py +++ b/royalnet/commands/command.py @@ -10,6 +10,10 @@ class Command: """The main name of the command. To have ``/example`` on Telegram, the name should be ``example``.""" + aliases: typing.List[str] = NotImplemented + """A list of possible aliases for a command. + To have ``/e`` as alias for ``/example``, one should set aliases to ``["e"]``.""" + description: str = NotImplemented """A small description of the command, to be displayed when the command is being autocompleted."""