Skip to content

Bug: 当插件命令参数超过 25 个时导致所有命令注册失效 #1543

Description

@Hoshino-Yumetsuki

Describe the bug

如题

Steps to reproduce

安装 Chatluna 并启动 adapter discord

Expected behavior

应该截断超过 25 个参数的命令,超出的参数直接忽略并发出警告

Screenshots

[400] {"message":"Invalid Form Body","code":50035,"errors":{"23":{"options":{"_errors":[{"code":"BASE_TYPE_MAX_LENGTH","message":"Must be 25 or fewer in length."}]}}}}

Versions

  • OS: Docker
  • Platform: Discord
  • Node version: nodejs 26 lts
  • Koishi version: 4.18.11

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions