Groove-Theory / Groove-Theory/Groovebot

Ranks Error on Print-All if rank does not exist

Open
#90 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Make category

Make ranks by roles

Delete the role but not the rank

Print-all ---> crash
TypeError: Cannot read property 'name' of null
at Object.exports.PrintRanks [as fFunc] (/app/js/Ranks.js:392:47)
at process._tickCallback (internal/process/next_tick.js:68:7)

We need a deleteRole event that delete's the ID from the DB, also to skip a role if we can't find it from DB to Discord

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in js/Ranks.js at the PrintRanks entry point and the reported failure near line 392. Reproduce the sequence of creating a category and role-based rank, deleting the role, and running Print-all. Done means Print-all no longer crashes when the role is missing, and the deleteRole event removes the role ID from the database.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend, databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.