CRBT-Team/Purplet

View on GitHub
packages/purplet/src/hooks/command-slash.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function $slashCommand has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function $slashCommand<T>(options: SlashCommandData<T>) {
  const commandOptions = toJSONValue(options.options ?? []);
  const autocompleteHandlers = getOptionBuilderAutocompleteHandlers(options.options);

  return $merge([
Severity: Minor
Found in packages/purplet/src/hooks/command-slash.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status