From d7eb0caa1e1e7109b8e2a2825d1a767b556e0fb4 Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Sun, 12 Nov 2023 12:03:20 +0100 Subject: [PATCH] Created the guildValidation.ts --- api/validations/guildValidation.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 api/validations/guildValidation.ts 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