title: discord.py - How do I add a kick/ban reason?
body: <p>I want to add an optional <code>reason</code> message to the <code>+kick</code> command when banning a member of a Discord room. My attempted code is below.</p>
  
  <p>Command and example usage:</p>
  
  <pre><code>+kick &lt;username&gt; &lt;reason&gt;
  +kick @Pine#1337 Spamming Messages in Wrong Channel.
  </code></pre>
  
  <p>Code: </p>
  
  <pre><code>@bot.command(pass_context=True)
  async def kick(ctx, user: discord.Member, *, arg, reason):
  author = ctx.message.author
  data = datetime.now().strftime('%Y-%m-%d %H:%M:%S')
  embed = discord.Embed(name="MEMBER_KICKED", description="------------------------------------------------------", color=0x00ff00)
  embed.set_author(name="MEMBER_KICKED:\nMember Kicked Successfully")
  embed.add_field(name="Kicked by: ", value="{}".format(author.mention), inline=False)
  embed.add_field(name="Kicked: ", value="&lt;@{}&gt;".format(user.id), inline=False)
  embed.add_field(name="Reason: ", value="{}\n------------------------------------------------------".format(arg), inline=False)
  embed.set_footer(text="Requested by {} \a {}".format(author, data), icon_url=author.avatar_url)
  await bot.say(embed=embed)
  channel = discord.utils.get(user.server.channels, name="logs")
  embed = discord.Embed(name="MEMBER_KICKED", description="------------------------------------------------------", color=0xff0000)
  embed.set_author(name="MEMBER_KICKED:\nMember Kicked")
  embed.add_field(name="Kicked by: ", value="{}".format(author.mention), inline=False)
  embed.add_field(name="Kicked: ", value="&lt;@{}&gt;".format(user.id), inline=False)
  embed.add_field(name="Reason: ", value="{}\n------------------------------------------------------".format(arg), inline=False)
  embed.set_footer(text="Kicked at {}".format(data))
  await bot.send_message(channel, embed=embed)
  if user.bot == False:
    embed = discord.Embed(name="KICKED", description="------------------------------------------------------", color=0xff0000)
    embed.set_author(name="KICKED:\nYou've been Kicked")
    embed.add_field(name="Kicked by: ", value="{}".format(author.mention), inline=False)
    embed.add_field(name="Kicked in: ", value="{}".format(user.server), inline=False)
    embed.add_field(name="Reason: ", value="{}\n------------------------------------------------------".format(arg), inline=False)
    embed.set_footer(text="Kicked at {}".format(data))
    await bot.send_message(user, embed=embed)
  if user.bot == True:
    pass
  reason = arg
  await bot.kick(user, reason=reason)
  </code></pre>
  
  <p>Error:</p>
  
  <blockquote>
    <p>TypeError: kick() missing 1 required 1 keyword-only argument 'reason'</p>
  </blockquote>