13 lines
326 B
TypeScript
13 lines
326 B
TypeScript
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
|
|
}); |