title: How do I get all messages on a channel and post to hastebin? discord.js
body: <p>I'm idealizing a doubt bot. In view of this, I must explain that at the end of the member's question, the channel must be closed and before that the bot must send a link from hastebin.com with the logs of the created channel.</p>
  
  <p>An example in practice would be: I create the ticket, the channel is created so that only me and the staff can see the channel. I ask and am answered. After having my answer, the channel is closed (deleted). Before being deleted, the bot creates a log and sends it to the hastebin, which stays the same in the print below.</p>
  
  <p><a href="https://i.stack.imgur.com/DIK1g.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DIK1g.png" alt="enter image description here"></a></p>
  
  <p>Please, help me!</p>
  
  <p>edit: I know how to do most of them, but my problem is to get the channel log and post it in hastebin, formatted.</p>