commands/vote/vote.js
Showing 4 of 4 total issues
Function processVote
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function processVote(type, bot, message, guild, member) { let voting = currentVotes[type][member.user.username]; if (!voting) { // sets a timeout for this voting
Function processVote
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function processVote(type, bot, message, guild, member) {
Avoid too many return
statements within this function. Open
Open
return false;
Avoid too many return
statements within this function. Open
Open
return false;