We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
例如有指令
ctx.command('foo', { authority: 3 }).option('ver', '-v <ver:number>')
当权限不足时,foo报权限不足,而foo -v abcd则会报 选项ver输入无效
foo
权限不足
foo -v abcd
选项ver输入无效
是否应该将部分逻辑移至on('attach') ? 或者延后parse reject的时机
on('attach')
parse reject
ref: koishijs/koishi-plugin-switch#3
/
二者均应报权限不足
No response
The text was updated successfully, but these errors were encountered:
你说的有道理,但是选项本身也是需要判断权限的。可能需要把权限的判断拆分到两个时机来做了……?
Sorry, something went wrong.
No branches or pull requests
Describe the bug
例如有指令
当权限不足时,
foo
报权限不足
,而foo -v abcd
则会报选项ver输入无效
是否应该将部分逻辑移至
on('attach')
? 或者延后parse reject
的时机ref: koishijs/koishi-plugin-switch#3
Steps to reproduce
/
Expected behavior
二者均应报
权限不足
Screenshots
No response
Versions
Additional context
No response
The text was updated successfully, but these errors were encountered: