mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
fix: tag schema to include embeds
key
during the io-ts to zod migration, there appears to have been a mistake where the `embeds` key wasn't included in the schema, causing an error when parsing it to a message object
This commit is contained in:
parent
eb5fda8d19
commit
01db45f892
1 changed files with 2 additions and 1 deletions
|
@ -6,7 +6,8 @@ import { GuildSavedMessages } from "../../data/GuildSavedMessages.js";
|
|||
import { GuildTags } from "../../data/GuildTags.js";
|
||||
import { zEmbedInput } from "../../utils.js";
|
||||
|
||||
export const zTag = z.union([z.string(), zEmbedInput]);
|
||||
const zEmbeds = z.object({embeds: z.array(zEmbedInput)})
|
||||
export const zTag = z.union([z.string(), zEmbeds]);
|
||||
export type TTag = z.infer<typeof zTag>;
|
||||
|
||||
export const zTagCategory = z
|
||||
|
|
Loading…
Add table
Reference in a new issue