title: How to convert a string to a member for python bots?
body: <p>I am having trouble converting a string into a member class for discord.py. My goal is to have the python bot I am writing to be able to save a set of users in the form of a string and write it to a text file (which I've managed). Subsequently, I would like to recall those strings and reference them as an id so my bot can private message a user. Most of the code I found works as it should when appropriately called in discord itself, but <strong>I want to be able to call the command itself from the script for the bot.</strong></p>
  <p>I.e., the following works as intended</p>
  <pre><code>@client.command()
  async def test(ctx, member : commands.MemberConverter):
      await member.send(member, 'Message')
  
  #called with something like .dm user#1234 on Discord itself
  </code></pre>
  <p>but I want my bot to be able to do something like</p>
  <pre><code>file = ['user#1234', 'user#2345', ...]
  member = file[1:]
  await member.send(member, 'Message')
  
  #Where a string can be passed into an argument to reference a user or how to convert the
  #string into a member class and then called to privately DM someone all in the bot code.
  </code></pre>
  <p>I kinda decided to write this bot on a whim yesterday morning and I have no prior knowledge in creating a bot. Any help is greatly appreciated. Thanks.</p>