📜  discord.py 权限 - Python 代码示例

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

代码示例4
@bot.command()
@commands.has_permissions(manage_messages=True)
async def test(ctx):
    await ctx.send('You can manage messages.')
   
# https://discordpy.readthedocs.io/en/stable/api.html#discord.Permissions