title: 'Command' object has no attribute 'has_permissions'
body: <pre class="lang-py prettyprint-override"><code>@client.command()
  @commands.has_permissions(administrator=True)
  async def kick(ctx, member : discord.Member, *, reason=None):
      try:
          await member.kick(reason=reason)
          embed = discord.Embed(colour=maincolour)
          embed.title = f&quot;**Member {member.mention} Kicked.&quot;
          embed.description = f&quot;**Reason** » {reason}.\n**Status** » Successful!&quot;
          await ctx.send(embed=embed)
      except:
              embed = discord.Embed(colour=maincolour)
              embed.title = &quot;**Kick not successful.&quot;
              embed.description = &quot;**Possible Errors:**\n» Insufficient Permissions (Requires Administrator)\n» Error with Bot.&quot;
              await ctx.send(embed=embed)
  </code></pre>
  <p>On the line</p>
  <pre class="lang-py prettyprint-override"><code>@commands.has_permissions(administrator=True)
  </code></pre>
  <p>the error is <code>'Command' object has no attribute 'has_permissions'</code>.</p>
  <p>How do I fix this error? This code works for my friend.</p>