Definition of a slash command.
| 113 | |
| 114 | @dataclass |
| 115 | class SlashCommand: |
| 116 | """Definition of a slash command.""" |
| 117 | |
| 118 | name: str |
| 119 | description: str |
| 120 | handler: CommandHandler |
| 121 | remote_invocable: bool = True |
| 122 | remote_admin_opt_in: bool = False |
| 123 | aliases: tuple[str, ...] = () |
| 124 | |
| 125 | |
| 126 | class CommandRegistry: |
no outgoing calls