Skip to content

gunshi / default / CommandResourceFetcher

Type Alias: CommandResourceFetcher()<G>

ts
type CommandResourceFetcher<G> = (ctx) => Awaitable<CommandResource<G>>;

Command resource fetcher.

Type Parameters

Type ParameterDefault type
G extends GunshiParams<any>DefaultGunshiParams

Parameters

ParameterTypeDescription
ctxReadonly<CommandContext<G>>A command context

Returns

Awaitable<CommandResource<G>>

A fetched command resource.

Released under the MIT License.