def archive_error(self, ctx, err):
original = None if not isinstance(err, commands.CommandInvokeError) else err.original
if isinstance(original, ValueError):
await ctx.send('Invalid flag value provided.')
err.should_suppress = True
评论列表
文章目录