I currently just have a simple table full of users who have entered the command: ~afk
Example:
var afkMembers = []
client.on('message' async message => {
if (message.content.toLowerCase() === '~afk') {
afkMembers.push(message.author.id)
return message.channel.send('you are now marked as AFK')
}
if (message.content.toLowerCase() === '~back') {
//remove the element from the table
return message.channel.send('you are now marked as back')
}
});
I'm just wondering how I would remove the users value from the table.
It is probably quite simple, however I cannot find a solution.
Thanks.