title: Recording the id of a discord message when it is sent with a bot
body: <p>I have a program that sends out messages on a discord server. I'd like to add a method for getting the message that has just been sent, so i can print its message_id</p>
  <pre><code>@bot.command(name='repeat', help='help me to understand bots')
  async def repeat(ctx, *lines):
      await asyncio.gather(*[ctx.send(line) for line in lines])
      print(&quot;message_id&quot;)
  </code></pre>
  <p>We could do this with the fetch command but that seems inelegant. Intuitively it seems like there should be a method of getting details like method_id from the send function but i can't find anything like that in the <a href="https://discordpy.readthedocs.io/en/latest/api.html?highlight=send#discord.abc.Messageable.send" rel="nofollow noreferrer">documentation</a></p>