AvailableCommand
Base classes¶
| Name | Children | Inherits |
|---|---|---|
| AnnotatedObject aclientp.schema.base Base class for generated models. |
⋔ Inheritance diagram¶
graph TD
95970862527952["slash_commands.AvailableCommand"]
95970862258240["base.AnnotatedObject"]
95970862254416["base.Schema"]
95970851503232["main.BaseModel"]
125067848591872["builtins.object"]
95970862258240 --> 95970862527952
95970862254416 --> 95970862258240
95970851503232 --> 95970862254416
125067848591872 --> 95970851503232
🛈 DocStrings¶
Bases: AnnotatedObject
Information about a command.
Source code in src/aclientp/schema/slash_commands.py
description
instance-attribute
¶
Human-readable description of what the command does.
input
class-attribute
instance-attribute
¶
input: AvailableCommandInput | None = None
Input for the command if required.
create
classmethod
¶
Create a new Command.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
Name of the command. |
required |
description
|
str
|
Description of the command. |
required |
input_hint
|
str | None
|
Hint for the input. |
None
|
Returns:
| Type | Description |
|---|---|
Self
|
A new available command. |