title: Discord.py hack ban command
body: <pre><code>  @commands.command(aliases=['hban'])
    @commands.has_permissions(ban_members=True)
    @commands.cooldown(1,3,BucketType.user)
    async def hackban(self, ctx, userID:int):
        if userID in guild.members:
            embed = discord.Embed(description=&quot;:oxmark:  &quot;+f&quot;Unsuccessful, the user is in this guild. [-help ban]&quot;, color=discord.Color.orange())
            await ctx.reply(embed=embed, mention_author=False)
  
        else:
            await ctx.guild.ban(discord.Object(id=userID))
            embed = discord.Embed(title=&quot;:ocheckmark:  &quot;+f&quot;Successfully hack banned {userID}&quot;, color=discord.Color.orange())
            await ctx.reply(embed=embed, mention_author=False)
  </code></pre>
  <p>I am making a hackban command which bans users not present in the guild through their ID. This is my code so far and it does not respond or give any errors.</p>