packages/purplet/src/hooks/command-slash.ts
Function $slashCommand
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function $slashCommand<T>(options: SlashCommandData<T>) {
const commandOptions = toJSONValue(options.options ?? []);
const autocompleteHandlers = getOptionBuilderAutocompleteHandlers(options.options);
return $merge([