Discord Bot JavaScript Usuń dane użytkownika w tablicy

case 'remove' :
    var remove = function(removeID){
        var index = array.indexOf(removeID);
        if (index>-1) {
            array.splice(index, 1);
        }
    }
    remove(args[1]);
    break;
//this code removes a specific value the user entered in an array i.e. !remove (the value here)
GHJW