📌  相关文章
📜  discord.py "NameError: name 'has_permissions' is not defined" - Python 代码示例

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

代码示例1
# Make sure you import 'commands'
from discord.exp import commands

# Also try to put your "@has_permissions" starts with "commands."
@commands.has_permissions(administrator=True)
async def function(ctx, prefix):
  pass