Skip to content

Conversation

@starkatt85
Copy link

based on "#141"

laid the base for report command (idk how to test it from every corner to corner, i tested with what i could using my pc and mobile for two accounts in game).

Copilot AI review requested due to automatic review settings January 12, 2026 09:41
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements a /report command allowing players to report others to staff with predefined reasons. The implementation uses interactive menus to select a target player and report reason, then sends the report via the backend API.

Changes:

  • Added setToArray import in general.ts
  • Implemented /report command with menu-based player and reason selection
  • Added a humorous comment about "uwu" in the banned words config

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 22 comments.

Show a summary per file
File Description
src/config.ts Added comment questioning the "uwu" ban
src/commands/general.ts Added setToArray import and implemented /report command
build/scripts/config.js Compiled output of config.ts changes
build/scripts/commands/general.js Compiled output of general.ts with report command
build/scripts/frameworks/menus.js Reformatted (no functional changes, just line number updates)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +1158 to +1161
).catch(() => {
outputFail('Report cancelled.');
return;
});
Copy link

Copilot AI Jan 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The error handling for menu cancellation is inconsistent. When the menu is cancelled via .catch(), the function calls outputFail('Report cancelled.') but then returns undefined, which continues execution. The subsequent if(!target) return; check will properly exit, but the error message is misleading since it suggests the report was cancelled when actually it will proceed if undefined is returned from catch. Consider making the catch handler explicitly return null or use promise rejection to ensure clean control flow.

Copilot uses AI. Check for mistakes.
starkatt85 and others added 2 commits January 12, 2026 15:20
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Peanutzy1
Copy link
Contributor

why the large diff

im

shock

@BalaM314
Copy link
Member

Moved to #165

@BalaM314 BalaM314 closed this Jan 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants