ArgumentConverter
type src/interaction/command.ts:39type ArgumentConverter = (value: any, context: InteractionContext) => Promise<any> | anyClasses and types for slash commands and context menus run by the InteractionCommandClient.
import { Interaction } 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: any, context: InteractionContext) => Promise<any> | anytype ArgumentDefault = (context: InteractionContext) => Promise<any> | any | anytype CommandCallbackAutoComplete = (context: InteractionAutoCompleteContext) => unknowntype CommandCallbackAutoCompleteError = (context: InteractionAutoCompleteContext, error: any) => unknowntype CommandCallbackBefore = (context: InteractionContext) => Promise<boolean> | booleantype CommandCallbackBeforeRun = (context: InteractionContext, args: ParsedArgs) => Promise<boolean> | booleantype CommandCallbackCancel = (context: InteractionContext) => unknowntype CommandCallbackCancelRun = (context: InteractionContext, args: ParsedArgs) => unknowntype CommandCallbackDmBlocked = (context: InteractionContext) => unknowntype CommandCallbackError = (context: InteractionContext, args: ParsedArgs, error: any) => unknowntype CommandCallbackFinally = (context: InteractionContext) => unknowntype CommandCallbackLoadingTrigger = (context: InteractionContext) => unknowntype CommandCallbackPermissionsFail = (context: InteractionContext, permissions: FailedPermissions) => unknowntype CommandCallbackRatelimit = (context: InteractionContext, ratelimits: CommandRatelimitInfo[], metadata: CommandRatelimitMetadata) => unknowntype CommandCallbackRun = (context: InteractionContext, args: ParsedArgs) => unknowntype CommandCallbackRunError = (context: InteractionContext, args: ParsedArgs, error: any) => unknowntype CommandCallbackSuccess = (context: InteractionContext) => unknowntype CommandCallbackValueError = (context: InteractionContext, args: ParsedArgs, errors: ParsedErrors) => unknowntype CommandRatelimitInfo = anytype CommandRatelimitMetadata = anytype FailedPermissions = bigint[]type InteractionCommandInvoker = InteractionCommand | InteractionCommandOptiontype ParsedArgs = Record<string, any>type ParsedErrors = Record<string, Error>