Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

discord.py owner only commands

# Make sure you don't have a command called "commands"
@client.command() # As usual
@commands.is_owner() # Making sure the person executing the command is the owner
async def foo(ctx):
	await ctx.send("Hello")
    #ect
 
PREVIOUS NEXT
Tagged: #owner #commands
ADD COMMENT
Topic
Name
8+5 =