mirror of
https://github.com/sern-handler/website
synced 2026-06-07 08:22:21 +00:00
123 lines
2.1 KiB
Markdown
123 lines
2.1 KiB
Markdown
---
|
|
id: "SlashCommand"
|
|
title: "Interface: SlashCommand"
|
|
sidebar_label: "SlashCommand"
|
|
sidebar_position: 0
|
|
custom_edit_url: null
|
|
---
|
|
|
|
## Hierarchy
|
|
|
|
- `Module`
|
|
|
|
↳ **`SlashCommand`**
|
|
|
|
## Properties
|
|
|
|
### description
|
|
|
|
• **description**: `string`
|
|
|
|
#### Overrides
|
|
|
|
Module.description
|
|
|
|
#### Defined in
|
|
|
|
[src/types/core-modules.ts:119](https://github.com/sern-handler/handler/blob/9d5c6c7/src/types/core-modules.ts#L119)
|
|
|
|
___
|
|
|
|
### execute
|
|
|
|
• **execute**: (`ctx`: [`Context`](../classes/Context.md), `args`: [``"slash"``, [`SlashOptions`](../modules.md#slashoptions)]) => `unknown`
|
|
|
|
#### Type declaration
|
|
|
|
▸ (`ctx`, `args`): `unknown`
|
|
|
|
##### Parameters
|
|
|
|
| Name | Type |
|
|
| :------ | :------ |
|
|
| `ctx` | [`Context`](../classes/Context.md) |
|
|
| `args` | [``"slash"``, [`SlashOptions`](../modules.md#slashoptions)] |
|
|
|
|
##### Returns
|
|
|
|
`unknown`
|
|
|
|
#### Overrides
|
|
|
|
Module.execute
|
|
|
|
#### Defined in
|
|
|
|
[src/types/core-modules.ts:121](https://github.com/sern-handler/handler/blob/9d5c6c7/src/types/core-modules.ts#L121)
|
|
|
|
___
|
|
|
|
### name
|
|
|
|
• `Optional` **name**: `string`
|
|
|
|
#### Inherited from
|
|
|
|
Module.name
|
|
|
|
#### Defined in
|
|
|
|
[src/types/core-modules.ts:34](https://github.com/sern-handler/handler/blob/9d5c6c7/src/types/core-modules.ts#L34)
|
|
|
|
___
|
|
|
|
### onEvent
|
|
|
|
• **onEvent**: [`ControlPlugin`](ControlPlugin.md)<`any`[]\>[]
|
|
|
|
#### Inherited from
|
|
|
|
Module.onEvent
|
|
|
|
#### Defined in
|
|
|
|
[src/types/core-modules.ts:35](https://github.com/sern-handler/handler/blob/9d5c6c7/src/types/core-modules.ts#L35)
|
|
|
|
___
|
|
|
|
### options
|
|
|
|
• `Optional` **options**: [`SernOptionsData`](../modules.md#sernoptionsdata)[]
|
|
|
|
#### Defined in
|
|
|
|
[src/types/core-modules.ts:120](https://github.com/sern-handler/handler/blob/9d5c6c7/src/types/core-modules.ts#L120)
|
|
|
|
___
|
|
|
|
### plugins
|
|
|
|
• **plugins**: [`InitPlugin`](InitPlugin.md)<`any`[]\>[]
|
|
|
|
#### Inherited from
|
|
|
|
Module.plugins
|
|
|
|
#### Defined in
|
|
|
|
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/9d5c6c7/src/types/core-modules.ts#L36)
|
|
|
|
___
|
|
|
|
### type
|
|
|
|
• **type**: [`Slash`](../enums/CommandType.md#slash)
|
|
|
|
#### Overrides
|
|
|
|
Module.type
|
|
|
|
#### Defined in
|
|
|
|
[src/types/core-modules.ts:118](https://github.com/sern-handler/handler/blob/9d5c6c7/src/types/core-modules.ts#L118)
|