Files
website/docs/api/interfaces/SlashCommand.md
2022-12-28 22:43:41 +03:00

2.3 KiB

id, title, sidebar_label, sidebar_position, custom_edit_url
id title sidebar_label sidebar_position custom_edit_url
SlashCommand Interface: SlashCommand SlashCommand 0 null

Hierarchy

Properties

description

Optional description: string

Inherited from

Module.description

Defined in

src/types/module.ts:38


execute

execute: (ctx: Context, args: ["slash", SlashOptions]) => unknown

Type declaration

▸ (ctx, args): unknown

Parameters
Name Type
ctx Context
args ["slash", SlashOptions]
Returns

unknown

Overrides

Module.execute

Defined in

src/types/module.ts:55


name

Optional name: string

Inherited from

Module.name

Defined in

src/types/module.ts:37


onEvent

onEvent: EventPlugin<Slash>[]

Defined in

src/types/module.ts:52


options

Optional options: (SernSubCommandData | SernSubCommandGroupData | BaseOptions)[]

Defined in

src/types/module.ts:54


plugins

plugins: CommandPlugin<keyof CommandModuleDefs>[]

Defined in

src/types/module.ts:53


type

type: Slash

Overrides

Module.type

Defined in

src/types/module.ts:51