const afkUsers = [];
client.on("messageCreate", function(message) {
if (message.author.bot) return;
afkUsers.map(x => {
if(x == message.author.id) return message.reply('I removed your AFK status.')
});
});
And now I want to delete the message author’s ID from the array