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:
parent
0aae70561c
commit
b0a4081a26
3 changed files with 17 additions and 4 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue