Created the guildValidation.ts

This commit is contained in:
Mathias Wagner 2023-11-12 12:03:20 +01:00
parent 25a2b1281f
commit d7eb0caa1e
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -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
});