Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to let only admins do a command in discord.py

@commands.has_permissions(administrator=True)
@client.command() 
async def admins_only_command(ctx, *, args):
    # ur code
 
PREVIOUS NEXT
Tagged: #admins #command
ADD COMMENT
Topic
Name
8+6 =