Skip to main content

Code Review

Analyze code snippets for issues, style problems, and formatting directly in Discord.

Setup​

Install the Code Review addon from the Addon Manager. Optionally configure the Maximum Code Length setting (default: 4000 characters, max: 4000).

For AI-powered reviews, a Groq API key must be configured on the server. Without it, the addon falls back to static analysis.

Commands​

/reviewcode​

Analyze a code snippet for issues and formatting.

OptionRequiredDescription
languageNoLanguage hint — skip for auto-detection

After running the command, a modal appears where you paste your code. Results include:

  • Detected or confirmed language
  • Error, warning, and info counts
  • List of issues with severity and descriptions
  • Formatted/corrected version of the code

Supported Languages​

LanguageAnalysis
JavaScriptErrors, style issues, potential bugs
TypeScriptType issues, errors, style
PythonSyntax issues, style (PEP 8)
JSONSyntax validation and formatting
CSSValidation
HTMLStructure issues
Auto-detectAutomatically detects the language

Analysis Modes​

AI-powered (Groq) — When a Groq API key is configured, the addon sends code to an LLM for a comprehensive review including a summary, specific issues, and a corrected/formatted version.

Static analysis (fallback) — When no API key is available, the addon uses built-in rules for JavaScript, TypeScript, Python, JSON, and CSS.

Addon Settings​

SettingDescriptionDefault
maxLengthMaximum characters allowed per review4000