Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

discord bot javascript remove user data in array

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)
 
PREVIOUS NEXT
Tagged: #discord #bot #javascript #remove #user #data #array
ADD COMMENT
Topic
Name
5+9 =