TypeScript code snippet – How to delete a message by its id? Subash Chandran 15th December 2021 Leave a Comment // ASSUMPTIONS: // channel: the channel you want the message to be sent in // lastmsg: the id of the last poll message channel.fetchMessage(lastmsg).then(msg => msg.delete()); Curly hair, very fair, please share 🙂Click to share on Twitter (Opens in new window)Click to share on Facebook (Opens in new window)Click to share on Reddit (Opens in new window)Click to share on Telegram (Opens in new window)Click to share on WhatsApp (Opens in new window)Click to email a link to a friend (Opens in new window) Related See also PHP code snippet - How to pass value from one page to another using session? Snippets, TypeScript how can i delete a specific message with the id ? Change font size A Decrease font size. A Reset font size. A Increase font size.