|
| None | __init__ (self, str name, str description, list[str] aliases=[], bool hidden=False) |
| |
| None | add_argument (self, list[str] names, str description, Type[Union[int, float, str, bool]] data_type, bool positional=False, bool required=True, int number_of_args=1) |
| |
| str | execute (self, User user, str args) |
| |
Definition at line 51 of file command.py.
◆ __init__()
| None talkomatic.commands.command.Command.__init__ |
( |
| self, |
|
|
str | name, |
|
|
str | description, |
|
|
list[str] | aliases = [], |
|
|
bool | hidden = False ) |
◆ add_argument()
| None talkomatic.commands.command.Command.add_argument |
( |
| self, |
|
|
list[str] | names, |
|
|
str | description, |
|
|
Type[Union[int, float, str, bool]] | data_type, |
|
|
bool | positional = False, |
|
|
bool | required = True, |
|
|
int | number_of_args = 1 ) |
◆ execute()
| str talkomatic.commands.command.Command.execute |
( |
| self, |
|
|
User | user, |
|
|
str | args ) |
◆ _parser
| argparse talkomatic.commands.command.Command._parser .ArgumentParser |
|
staticprotected |
◆ aliases
| list talkomatic.commands.command.Command.aliases [str] |
|
static |
◆ description
| talkomatic.commands.command.Command.description = description |
◆ function
| Callable talkomatic.commands.command.Command.function [..., Awaitable[Any]] |
|
static |
◆ hidden
| talkomatic.commands.command.Command.hidden = hidden |
◆ name
| talkomatic.commands.command.Command.name = name |
◆ parameters
The documentation for this class was generated from the following file:
- C:/Users/jean-/talkomatic.py/talkomatic/commands/command.py