So far the questions I've seen were about deleting the whole message when a specific word is detected. What I need is to just edit the message and delete the specific letter, word, or emoji. How to do that?
So for example I have a message content saying "Awesome ❤️", and I want to delete ❤️ character only from the message, so it should be "Awesome".
client.on("messageCreate", (message) => {
if(message.content.includes("❤️")) {
//delete the ❤️ emoji only
}
})