Skip to content

gunshi / default / PluginWithExtension

Interface: PluginWithExtension()<E>

Plugin return type with extension, which includes the plugin ID, name, dependencies, and extension.

This type is used to define a plugin at plugin function.

Extends

Type Parameters

Type ParameterDefault typeDescription
E extends GunshiParams["extensions"]DefaultGunshiParams["extensions"]A type extending GunshiParams to specify the shape of CommandContext's extensions.
ts
PluginWithExtension(ctx): Awaitable<void>;

Plugin return type with extension, which includes the plugin ID, name, dependencies, and extension.

This type is used to define a plugin at plugin function.

Parameters

ParameterType
ctxReadonly<PluginContext<G>>

Returns

Awaitable<void>

Properties

PropertyTypeDescriptionOverrides
dependencies?(string | PluginDependency)[]Plugin dependenciesPlugin.dependencies
extensionCommandContextExtension<E>Plugin extensionPlugin.extension
idstringPlugin identifierPlugin.id
namestringPlugin namePlugin.name

Released under the MIT License.