how to let only admins do a command in discord py

Solutions on MaxInterview for how to let only admins do a command in discord py by the best coders in the world

showing results for - "how to let only admins do a command in discord py"
Manuel
15 Nov 2016
1@commands.has_permissions(administrator=True)
2@client.command() 
3async def admins_only_command(ctx, *, args):
4    # ur code