element11
0
Q:

how to limit a command to a permission in discord.py

@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
2

New to Communities?

Join the community