2024-04-03 18:03:42 [W] command getid
TypeError: Cannot read properties of undefined (reading 'startsWith')
at Command.<anonymous> (/home/dev/koishi/external/cs-lookup/src/commands/getid.ts:7:21)
at Array.<anonymous> (/home/dev/koishi/node_modules/@koishijs/core/src/command/command.ts:287:27)
at Object.argv.next (/home/dev/koishi/node_modules/@koishijs/core/src/command/command.ts:299:27)
at Command.execute (/home/dev/koishi/node_modules/@koishijs/core/src/command/command.ts:303:33)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at <anonymous> (/home/dev/koishi/node_modules/@koishijs/core/src/session.ts:396:22)
at Proxy.withScope (/home/dev/koishi/node_modules/@koishijs/core/src/session.ts:293:22)
示例1: 代码 (koishi):
使用非 slash command 执行结果: 同样的内容使用 slash command 执行结果: 报错:
示例2: 代码:Github 使用非 slash command 执行结果: 使用 slash command 执行结果: 无报错