gunshi / default / PluginWithoutExtension
Interface: PluginWithoutExtension()<E>
Plugin return type without extension, which includes the plugin ID, name, and dependencies, but no extension.
This type is used to define a plugin at plugin function without extension.
Extends
Plugin<E>
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
E extends GunshiParams["extensions"] | DefaultGunshiParams["extensions"] | A type extending GunshiParams to specify the shape of CommandContext's extensions. |
ts
PluginWithoutExtension(ctx): Awaitable<void>;Plugin return type without extension, which includes the plugin ID, name, and dependencies, but no extension.
This type is used to define a plugin at plugin function without extension.
Parameters
| Parameter | Type |
|---|---|
ctx | Readonly<PluginContext<G>> |
Returns
Awaitable<void>
Properties
| Property | Type | Description | Overrides | Inherited from |
|---|---|---|---|---|
dependencies? | (string | PluginDependency)[] | Plugin dependencies | Plugin.dependencies | - |
extension? | CommandContextExtension<E> | - | - | Plugin.extension |
id | string | Plugin identifier | Plugin.id | - |
name | string | Plugin name | Plugin.name | - |
