@client.command()
@commands.has_permissions(whatever=True) #Make sure you don't have a command called "commands", you can also use "False" instead of "True"
async def ping(ctx):
await ctx.send(f"Pong! {client.latency}") #You probobly didn't need this