3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-07-07 19:17:19 +00:00

fix: message content types

This commit is contained in:
Dragory 2025-05-31 22:58:35 +00:00
parent 0aae70561c
commit b0a4081a26
No known key found for this signature in database
3 changed files with 17 additions and 4 deletions

View file

@ -266,7 +266,7 @@ export const zEmbedInput = z.object({
export type EmbedWith<T extends keyof APIEmbed> = APIEmbed & Pick<Required<APIEmbed>, T>;
export const zStrictMessageContent = z.object({
export const zStrictMessageContent = z.strictObject({
content: z.string().optional(),
tts: z.boolean().optional(),
embeds: z.array(zEmbedInput).optional(),