diff --git a/src/onebot/action/type.ts b/src/onebot/action/type.ts index 76b11d5c..f480fda0 100644 --- a/src/onebot/action/type.ts +++ b/src/onebot/action/type.ts @@ -1,7 +1,7 @@ import { z } from "zod"; const boolean = () => z.preprocess( - val => typeof val === 'string' && (val.toLowerCase() === 'false' || val === '0') ? false : Boolean(val), + val => typeof val === 'string' && val.toLowerCase() === 'false' ? false : Boolean(val), z.boolean() ); const number = () => z.preprocess(