Public Member Functions | |
| None | __init__ (self, str name, str description, Type[Union[int, float, str, bool]] data_type, bool positional=False, list[str] aliases=[], bool required=True, int number_of_args=1) |
Public Attributes | |
| name = name | |
| description = description | |
| positional = positional | |
| required = required | |
| number_of_args = number_of_args | |
Static Public Attributes | |
| Type | data_type [Union[int, float, str, bool]] |
| list | aliases [str] |
A class that represents a parameter for a command.
Args:
name (str): The name of the parameter.
description (str): The description of the parameter.
data_type (object): The type of the parameter.
aliases (list[str]): The aliases of the parameter.
required (bool): Whether the parameter is required.
number_of_args (int): The number of arguments the parameter can take. (INFINITE_ARGS for infinite)
Definition at line 18 of file command.py.
| None talkomatic.commands.command.CommandParameter.__init__ | ( | self, | |
| str | name, | ||
| str | description, | ||
| Type[Union[int, float, str, bool]] | data_type, | ||
| bool | positional = False, | ||
| list[str] | aliases = [], | ||
| bool | required = True, | ||
| int | number_of_args = 1 ) |
Definition at line 39 of file command.py.
|
static |
Definition at line 34 of file command.py.
|
static |
Definition at line 33 of file command.py.
| talkomatic.commands.command.CommandParameter.description = description |
Definition at line 44 of file command.py.
| talkomatic.commands.command.CommandParameter.name = name |
Definition at line 43 of file command.py.
| talkomatic.commands.command.CommandParameter.number_of_args = number_of_args |
Definition at line 49 of file command.py.
| talkomatic.commands.command.CommandParameter.positional = positional |
Definition at line 46 of file command.py.
| talkomatic.commands.command.CommandParameter.required = required |
Definition at line 48 of file command.py.