1# Make sure you don't have a command called "commands"
2@client.command() # As usual
3@commands.has_permissions(administrator=True) # Making sure the person executing the command has the permissions
4async def foo(ctx):
5 await ctx.send("Hello")
6 #ect
1@commands.has_permissions(administrator=True)
2@client.command()
3async def admins_only_command(ctx, *, args):
4 # ur code