1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

Add aliases field

This commit is contained in:
Steffo 2019-10-03 15:31:59 +02:00
parent 8f797c9bbb
commit 5fcf2652c6

View file

@ -10,6 +10,10 @@ class Command:
"""The main name of the command. """The main name of the command.
To have ``/example`` on Telegram, the name should be ``example``.""" 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 description: str = NotImplemented
"""A small description of the command, to be displayed when the command is being autocompleted.""" """A small description of the command, to be displayed when the command is being autocompleted."""