From 9ab01e040495b60d4f29217191d3ae9ee774608c Mon Sep 17 00:00:00 2001 From: Puyodead1 <23562356riley@gmail.com> Date: Mon, 25 Jul 2022 23:02:04 -0400 Subject: fix: not being able to enable community --- api/assets/schemas.json | 10 +++------- api/src/routes/guilds/#guild_id/index.ts | 3 ++- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/api/assets/schemas.json b/api/assets/schemas.json index 2102292b..ca42e676 100644 --- a/api/assets/schemas.json +++ b/api/assets/schemas.json @@ -6828,6 +6828,9 @@ "GuildUpdateSchema": { "type": "object", "properties": { + "name": { + "type": "string" + }, "banner": { "type": [ "null", @@ -6873,10 +6876,6 @@ "preferred_locale": { "type": "string" }, - "name": { - "maxLength": 100, - "type": "string" - }, "region": { "type": "string" }, @@ -6897,9 +6896,6 @@ } }, "additionalProperties": false, - "required": [ - "name" - ], "definitions": { "Embed": { "type": "object", diff --git a/api/src/routes/guilds/#guild_id/index.ts b/api/src/routes/guilds/#guild_id/index.ts index 4ec3df72..be556fb2 100644 --- a/api/src/routes/guilds/#guild_id/index.ts +++ b/api/src/routes/guilds/#guild_id/index.ts @@ -7,7 +7,8 @@ import { GuildCreateSchema } from "../index"; const router = Router(); -export interface GuildUpdateSchema extends Omit { +export interface GuildUpdateSchema extends Omit { + name?: string; banner?: string | null; splash?: string | null; description?: string; -- cgit 1.4.1