feat: upgrade zod to v4 (#11258)

* feat: upgrade zod to v4

* fix: requested changes

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Almeida
2025-11-12 10:07:58 +00:00
committed by GitHub
parent d923e90ae6
commit 538b47dd00
10 changed files with 10 additions and 10 deletions

View File

@@ -22,7 +22,7 @@ export type Command = {
* Defines the schema for a command
*/
export const schema = z.object({
data: z.record(z.any()),
data: z.record(z.string(), z.any()),
execute: z.function(),
});

View File

@@ -19,7 +19,7 @@ export type Event<EventName extends keyof ClientEvents = keyof ClientEvents> = {
/**
* Whether or not the event should only be listened to once
*
* @defaultValue false
* @defaultValue `false`
*/
once?: boolean;
};