koishijs / koishi

Cross-platform chatbot framework made with love
https://koishi.chat
MIT License
4.53k stars 246 forks source link

Feature: 指令参数类型增加非负整数 #1398

Closed idranme closed 5 months ago

idranme commented 6 months ago

Describe the problem related to the feature request

仅允许参数的值为非负整数

Describe the solution you'd like

指令参数类型增加非负整数

Describe alternatives you've considered

No response

Additional context

No response

DGCK81LNN commented 5 months ago

natural

https://github.com/koishijs/koishi/blob/d985a519741f3a46fbd0919f32dffcc3a75e74ae/packages/core/src/command/index.ts#L187-L191

idranme commented 5 months ago

natural

https://github.com/koishijs/koishi/blob/d985a519741f3a46fbd0919f32dffcc3a75e74ae/packages/core/src/command/index.ts#L187-L191

https://koishi.chat/zh-CN/guide/basic/command.html#argument-type 目前文档未提及

shigma commented 5 months ago

嗯……也行,我先补一个文档吧