summary refs log tree commit diff
path: root/src/routes/api/v8/guilds/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/api/v8/guilds/index.ts')
-rw-r--r--src/routes/api/v8/guilds/index.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/routes/api/v8/guilds/index.ts b/src/routes/api/v8/guilds/index.ts

index 93d5292e..f2c9d556 100644 --- a/src/routes/api/v8/guilds/index.ts +++ b/src/routes/api/v8/guilds/index.ts
@@ -169,10 +169,11 @@ router.post("/", check(GuildCreateSchema), async (req: Request, res: Response) = data: guild, guild_id: guildID, } as GuildCreateEvent); + + res.status(201).json({ id: guild.id }); } catch (error) { throw new HTTPError("Couldnt create Guild", 500); } - res.status(201).json({ id: guild.id }); }); router.delete("/:id", async (req: Request, res: Response) => {