Im trying to delete the .ping after i just used it, while the answer, 'pong' still remains.
The code below is what i can think of, but it doesn't seem to work, can anyone correct my mistake?
client.on('message', msg => {
if (msg.content === '.ping') {
message.delete(1000);
msg.reply('pong!');
}
});