【发布时间】:2019-03-21 06:13:05
【问题描述】:
@warn.error
async def kick_error(error, ctx):
if isinstance(error, MissingPermissions):
text = "Sorry {}, you do not have permissions to do that!".format(ctx.message.author)
await bot.send_message(ctx.message.channel, text)
它运行,但是当我使用警告命令时,它打印出 MissingPermissions 未定义 如何定义?
eError: name 'MissingPermissions' is not defined
【问题讨论】:
标签: python python-3.x python-3.6 discord discord.py