diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-09-28 16:39:05 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-09-28 16:39:05 +1000 |
commit | 7818e8dd3cff1cba078acd52cda4f852d6422a92 (patch) | |
tree | db2a5e91a0505e91be49ba5825919051326108d6 /src/api/routes/guilds/#guild_id | |
parent | Use PrimaryIdColumn instead of PrimaryColumn in Invite and Category (diff) | |
download | server-7818e8dd3cff1cba078acd52cda4f852d6422a92.tar.xz |
Missed some schemas
Diffstat (limited to 'src/api/routes/guilds/#guild_id')
-rw-r--r-- | src/api/routes/guilds/#guild_id/index.ts | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/src/api/routes/guilds/#guild_id/index.ts b/src/api/routes/guilds/#guild_id/index.ts index 715a3835..04cb76c2 100644 --- a/src/api/routes/guilds/#guild_id/index.ts +++ b/src/api/routes/guilds/#guild_id/index.ts @@ -8,29 +8,13 @@ import { GuildUpdateEvent, handleFile, Member, - GuildCreateSchema, + GuildUpdateSchema, } from "@fosscord/util"; import { HTTPError } from "lambert-server"; import { route } from "@fosscord/api"; const router = Router(); -export interface GuildUpdateSchema extends Omit<GuildCreateSchema, "channels"> { - banner?: string | null; - splash?: string | null; - description?: string; - features?: string[]; - verification_level?: number; - default_message_notifications?: number; - system_channel_flags?: number; - explicit_content_filter?: number; - public_updates_channel_id?: string; - afk_timeout?: number; - afk_channel_id?: string; - preferred_locale?: string; - premium_progress_bar_enabled?: boolean; -} - router.get("/", route({}), async (req: Request, res: Response) => { const { guild_id } = req.params; |