ArgumentConverter
type src/command/argument.ts:7type ArgumentConverter = (value: string, context: Context) => Promise<any> | anyClasses and types for prefix commands run by the CommandClient.
import { Command } from 'detritus-client';Grouped exports, reached as properties of the package.
Classes you create or receive from the library.
Object shapes for options, payloads and events.
Named types used across the API.
type ArgumentConverter = (value: string, context: Context) => Promise<any> | anytype ArgumentDefault = (context: Context) => Promise<any> | any | anytype ArgumentType = ArgumentConverter | Boolean | Number | String | CommandArgumentTypes | ArgumentOptions[]type CommandCallbackBefore = (context: Context) => Promise<boolean> | booleantype CommandCallbackBeforeRun = (context: Context, args: ParsedArgs) => Promise<boolean> | booleantype CommandCallbackCancelRun = (context: Context, args: ParsedArgs) => Promise<Message | void> | Message | voidtype CommandCallbackError = (context: Context, args: ParsedArgs, error: any) => unknowntype CommandCallbackFinally = (context: Context) => unknowntype CommandCallbackPermissionsFail = (context: Context, permissions: FailedPermissions) => Promise<Message | void> | Message | voidtype CommandCallbackRatelimit = (context: Context, ratelimits: CommandRatelimitInfo[], metadata: CommandRatelimitMetadata) => Promise<Message | void> | Message | voidtype CommandCallbackRun = (context: Context, args: ParsedArgs) => Promise<Message | void> | Message | voidtype CommandCallbackRunError = (context: Context, args: ParsedArgs, error: any) => Promise<Message | void> | Message | voidtype CommandCallbackSuccess = (context: Context, args: ParsedArgs) => unknowntype CommandCallbackTypeError = (context: Context, args: ParsedArgs, errors: ParsedErrors) => Promise<Message | void> | Message | voidtype CommandCallbackTypingTrigger = (context: Context) => unknowntype CommandRatelimitInfo = anytype CommandRatelimitMetadata = anytype EditOrCreate = RequestTypes.CreateMessage & RequestTypes.EditMessage & MessageReplyOptionstype FailedPermissions = bigint[]type ParsedArgs = { [key: string]: any } | anytype ParsedErrors = { [key: string]: Error } | any