mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 11:34:18 +00:00
Add aliases field
This commit is contained in:
parent
8f797c9bbb
commit
5fcf2652c6
1 changed files with 4 additions and 0 deletions
|
@ -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."""
|
||||
|
||||
|
|
Loading…
Reference in a new issue