Type Alias: Plugin<E>
ts
type Plugin<E> = PluginFunction & object;Gunshi plugin, which is a function that receives a PluginContext.
Type Declaration
dependencies?
ts
optional dependencies: (PluginDependency | string)[];extension?
ts
optional extension: CommandContextExtension<E>;id
ts
id: string;name?
ts
optional name: string;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. |
Param
Returns
An Awaitable that resolves when the plugin is loaded.
Since
v0.27.0
