title: Discord.py Add Role Command
body: <p>I Just Started Making a Discord Bot. I Wanna Make a Command Where You Can Type -queue duos to Queue a Game With Others Who Also Want to. However, My Add Role Command Is Completely Unresponsive and Doesn't Give a Role or Error When I Type The Command Into Discord.</p>
  <pre><code>import discord
  import os
  
  
  #run the Bot and a message to make sure it ran
  client = discord.Client()
  
  @client.event
  async def on_ready():
      print('We have logged in as {0.user}'.format(client))
  
  
  @client.event
  async def on_message(message):
      if message.author == client.user:
          return
  #Detects if someone queues
      if message.content.startswith('-queue duos'):
  
          await message.channel.send('you have joined the duos queue.')
  
          async def role(ctx, member : discord.Member, role : discord.Role):
            await member.add_roles(role)
       
  
  client.run(os.getenv('TOKEN'))
  </code></pre>