title: Temp Mute command
body: <p>I am trying to make it so server <strong>moderators</strong> are able to temporarily mute users in their <strong>Discord</strong>. I am not an experienced developer within Discord bots but learning.</p>
  
  <p>What I am trying to do?
  I am trying to make it so server owners are able to temp mute users in their Discord servers.</p>
  
  <p>This is what I currently have for my Mute command:</p>
  
  <pre><code>@bot.command(pass_context=True)
  async def mute(ctx, user: discord.Member):
      if ctx.message.author.server_permissions.kick_members:
          role = discord.utils.get(user.server.roles, name="Muted")
          embed = discord.Embed(title="{} has been muted!".format(user.name), description="When the user needs unmuting do !unmute @user!" , color=0x0072ff)
          embed.set_footer(text="Reversed by Damian#9209 | Reduction#9975")
          embed.set_thumbnail(url=user.avatar_url)
          await bot.add_roles(user, role)
          await bot.say(embed=embed)
      else:
         embed = discord.Embed(title="Permission Denied.", description="You don't have permission to use this command.", color=0xff0000)
         embed.set_footer(text="Reversed by Damian#9209 | Reduction#9975")
         await bot.say(embed=embed)
  </code></pre>