Skip to main content

commandOptionsParser

@discordeno/bot


Documentation / @discordeno/bot / commandOptionsParser

Function: commandOptionsParser()

commandOptionsParser<TProps, TBehavior>(__interaction, options?): ParsedInteractionOption<TProps, TBehavior>

Defined in: packages/bot/src/commandOptionsParser.ts:17

Type Parameters

TProps extends TransformersDesiredProperties & object

TBehavior extends DesiredPropertiesBehavior

Parameters

__interaction

SetupDesiredProps<Interaction, TProps, TBehavior>

options?

InteractionDataOption[]

Returns

ParsedInteractionOption<TProps, TBehavior>