diff --git a/api/validations/guildValidation.ts b/api/validations/guildValidation.ts new file mode 100644 index 0000000..b4fea80 --- /dev/null +++ b/api/validations/guildValidation.ts @@ -0,0 +1,13 @@ +import Joi from 'joi'; + +export const patchGuild = Joi.object({ + guild: Joi.number() + .required() + .min(19) + .max(19), + language: Joi.string() + .allow("de", "en"), + emotes: Joi.number() + .min(0) + .max(7), // Change this if you add more emotes. This is the bitset of 3 bits +}); \ No newline at end of file