diff options
author | AlTech98 <altech123159@gmail.com> | 2021-09-13 19:25:44 +0200 |
---|---|---|
committer | AlTech98 <altech123159@gmail.com> | 2021-09-13 19:25:44 +0200 |
commit | 7cdcb82ecdf51b2dab5808a89ed50b96af0a60cc (patch) | |
tree | c3b2610bd083c3dab2289b3c4cc56f95218c3505 /api/src/routes/guilds | |
parent | Merge pull request #357 from AlTech98/user-update (diff) | |
download | server-7cdcb82ecdf51b2dab5808a89ed50b96af0a60cc.tar.xz |
Fix #356
Diffstat (limited to 'api/src/routes/guilds')
-rw-r--r-- | api/src/routes/guilds/#guild_id/index.ts | 10 | ||||
-rw-r--r-- | api/src/routes/guilds/index.ts | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/api/src/routes/guilds/#guild_id/index.ts b/api/src/routes/guilds/#guild_id/index.ts index 690d4103..9c67798d 100644 --- a/api/src/routes/guilds/#guild_id/index.ts +++ b/api/src/routes/guilds/#guild_id/index.ts @@ -9,17 +9,17 @@ import { GuildCreateSchema } from "../index"; const router = Router(); export interface GuildUpdateSchema extends Omit<GuildCreateSchema, "channels"> { - banner?: string; - splash?: string; - description?: string; + banner?: string | null; + splash?: string | null; + description?: string | null; features?: string[]; verification_level?: number; default_message_notifications?: number; system_channel_flags?: number; explicit_content_filter?: number; - public_updates_channel_id?: string; + public_updates_channel_id?: string | null; afk_timeout?: number; - afk_channel_id?: string; + afk_channel_id?: string | null; preferred_locale?: string; } diff --git a/api/src/routes/guilds/index.ts b/api/src/routes/guilds/index.ts index ba951f96..674dc16b 100644 --- a/api/src/routes/guilds/index.ts +++ b/api/src/routes/guilds/index.ts @@ -16,7 +16,7 @@ export interface GuildCreateSchema { icon?: string; channels?: ChannelModifySchema[]; guild_template_code?: string; - system_channel_id?: string; + system_channel_id?: string | null; rules_channel_id?: string; } |