Skip to content

Commit

Permalink
Add instructions on using parameters with user or channel type
Browse files Browse the repository at this point in the history
  • Loading branch information
ForkKILLET authored Aug 28, 2024
1 parent 00a544f commit ecadc0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zh-CN/guide/basic/command.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ ctx.command('test [arg:number]')
- number: `number` 数值
- bigint: `bigint` [大整数](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/BigInt)
- text: `string` 贪婪匹配的字符串
- user: `string` 用户,格式为 `{platform}:{id}`
- channel: `string` 频道,格式为 `{platform}:{id}`
- user: `string` 用户,格式为 `{platform}:{id}`(调用时,可以使用 `at` 元素或者 `@{platform}:{id}` 的格式)
- channel: `string` 频道,格式为 `{platform}:{id}`(调用时,可以使用 `sharp` 元素或者 `#{platform}:{id}` 的格式)
- integer: `number` 整数
- posint: `number` 正整数
- natural: `number` 正整数
Expand Down

0 comments on commit ecadc0a

Please sign in to comment.