3
0
Fork 0
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:
Ruby 2024-10-25 15:46:31 +02:00
parent eb5fda8d19
commit 01db45f892
No known key found for this signature in database
GPG key ID: E0BDFAF7AE9E0531

View file

@ -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