gunshi / default / CommandResourceFetcher
Type Alias: CommandResourceFetcher()<G>
ts
type CommandResourceFetcher<G> = (ctx) => Awaitable<CommandResource<G>>;Command resource fetcher.
Type Parameters
| Type Parameter | Default type |
|---|---|
G extends GunshiParams<any> | DefaultGunshiParams |
Parameters
| Parameter | Type | Description |
|---|---|---|
ctx | Readonly<CommandContext<G>> | A command context |
Returns
A fetched command resource.
