remove args from ana array in discord.js
i wanna remove an argument that i prevously added to an array with a command, the code i made: const args = message.content.slice(prefix.length).split(/ +/); const command = args.shift().toLowerCase();…
Start Learning to Code
i wanna remove an argument that i prevously added to an array with a command, the code i made: const args = message.content.slice(prefix.length).split(/ +/); const command = args.shift().toLowerCase();…
Some days ago, I programmed a Discord bot with a count game. Someone has to send 1, then someone else had to say 2 and so on. When someone said a number twice, or said the wrong number, the game …
I have a Discord.js bot, I wanted to make a lockdown command, but my channel ids are stored in a JSON file, and I dont know how to iterate through it. This is the JSON configuration: { “…