get messages by id discord.js

JavaScript
channel.messages.cache.get("[your id here]")
Source

Also in JavaScript: