diff options
author | Puyodead1 <23562356riley@gmail.com> | 2022-07-25 23:02:04 -0400 |
---|---|---|
committer | Erkin Alp Güney <erkinalp9035@gmail.com> | 2022-07-26 10:08:12 +0300 |
commit | 9ab01e040495b60d4f29217191d3ae9ee774608c (patch) | |
tree | 9257dab3112b5409423075c95f5c74439b526adc | |
parent | Bump file-type from 16.5.3 to 16.5.4 in /bundle (#802) (diff) | |
download | server-9ab01e040495b60d4f29217191d3ae9ee774608c.tar.xz |
fix: not being able to enable community
-rw-r--r-- | api/assets/schemas.json | 10 | ||||
-rw-r--r-- | 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<GuildCreateSchema, "channels"> { +export interface GuildUpdateSchema extends Omit<GuildCreateSchema, "channels" | "name"> { + name?: string; banner?: string | null; splash?: string | null; description?: string; |