This is my code:
@client.command()
@client.command.has_permissions(administrator=True)
async def kick(ctx, member: discord.Member):
await member.kick()
await ctx.message.add_reaction(" ")
await ctx.send(f"{member.name} has been kicked by {ctx.author.name}!")
await log_channel.send(f"{ctx.author.name} has kicked {member.display_name}")
It is giving the following error:
Traceback (most recent call last):
File "C:/Users/Gacha/Desktop/Python Bot/bot.py", line 56, in <module>
@client.command.has_permissions(administrator=True)
AttributeError: 'function' object has no attribute 'has_permissions'
I don't know why it is showing this, I saw someone using this and it worked for him. ;-;