Skip to main content

commandOptionsParser

@discordeno/botDocs


Documentation / @discordeno/bot / commandOptionsParser

Function: commandOptionsParser()

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

Type Parameters

TProps extends WithAtLeast<TransformersDesiredProperties, object>

TBehavior extends DesiredPropertiesBehavior

Parameters

__interaction: SetupDesiredProps<Interaction, TProps, TBehavior>

options?: InteractionDataOption[]

Returns

ParsedInteractionOption<TProps, TBehavior>

Defined in

packages/bot/src/commandOptionsParser.ts:17