Created the guildValidation.ts
This commit is contained in:
parent
25a2b1281f
commit
d7eb0caa1e
13
api/validations/guildValidation.ts
Normal file
13
api/validations/guildValidation.ts
Normal 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
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user