You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2024-04-14 13:25:14 [D] discord GET /users/@me/guilds { params: { after: undefined, limit: 200 } }
2024-04-14 13:25:14 [W] app Error: [400] {"message":"Invalid Form Body","code":50035,"errors":{"after":{"_errors":[{"code":"NUMBER_TYPE_COERCE","message":"Value \"undefined\" is not snowflake."}]}}}
at _Internal._Internal.<computed> (C:\Users\girki\AppData\Roaming\Koishi\Dev\node_modules\@satorijs\adapter-discord\src\types\internal.ts:36:21)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at DiscordBot.getGuildList (C:\Users\girki\AppData\Roaming\Koishi\Dev\node_modules\@satorijs\adapter-discord\src\bot.ts:125:20)
at <anonymous> (c:\Users\girki\AppData\Roaming\Koishi\Dev\external\contextual-command\src\index.ts:45:17)
getGuildList等一些api的默认参数after为undefined,这个undefined会被编码进get的参数里,导致服务器返回类型验证错误。
应当忽略此处的undefined,不清楚应当在undios侧修正还是在adapter处修正。
satori/adapters/discord/src/types/internal.ts
Lines 32 to 33 in 2e12d9e
The text was updated successfully, but these errors were encountered: