Skip to content

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

Type Parameters

Type ParameterDefault type
E extends GunshiParams["extensions"]DefaultGunshiParams["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

ParameterType
ctxReadonly<PluginContext<G>>

Returns

Awaitable<void>

Properties

PropertyTypeDescriptionOverridesInherited from
dependencies?(string | PluginDependency)[]Plugin dependenciesPlugin.dependencies-
extension?CommandContextExtension<E>--Plugin.extension
idstringPlugin identifierPlugin.id-
namestringPlugin namePlugin.name-

Released under the MIT License.