Answers for "discord.py get owner"

1

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
Posted by: Guest on April-07-2021
8

discord py get user by id

user = bot.get_user(user_id)
Posted by: Guest on May-21-2020

Python Answers by Framework

Browse Popular Code Answers by Language