diff --git a/api/assets/schemas.json b/api/assets/schemas.json index 4249eb815..8f0f31beb 100644 --- a/api/assets/schemas.json +++ b/api/assets/schemas.json @@ -7166,6 +7166,9 @@ "GuildUpdateSchema": { "type": "object", "properties": { + "name": { + "type": "string" + }, "banner": { "type": [ "null", @@ -7211,10 +7214,6 @@ "preferred_locale": { "type": "string" }, - "name": { - "maxLength": 100, - "type": "string" - }, "region": { "type": "string" }, @@ -7235,9 +7234,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 4ec3df729..be556fb23 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;