Skip to content Skip to sidebar Skip to footer

Discord.py How To Set A Kick Command Such That Only An Administrator Can Use It?

Here is my code - @client.command() @client.command.has_permissions(administrator=True) async def kick(ctx, member: discord.Member): await member.kick() await ctx.message.a

Solution 1:

Its @commands.has_permissions(administrator=True) instead of @client.command.has_permissions(administrator=True)

And I wonder where you saw someone else using it 🤔

Post a Comment for "Discord.py How To Set A Kick Command Such That Only An Administrator Can Use It?"