📜  discord.py 仅所有者命令 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:29.027000             🧑  作者: Mango

代码示例1
# 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