discord.js edit message by id
snippet in javascript

discord.js edit message by id

user3020

client.channels.cache.get(channelid).fetchMessage(messageid).then(msg => msg.delete());