From 1b6358a15106d1ae9747b12d6bebabb8b7bcbd42 Mon Sep 17 00:00:00 2001 From: Paul Munteanu Date: Mon, 26 Jul 2021 02:19:45 +0300 Subject: [PATCH] Use config default region for new Guilds --- src/routes/guilds/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/guilds/index.ts b/src/routes/guilds/index.ts index 17ade355..25b55896 100644 --- a/src/routes/guilds/index.ts +++ b/src/routes/guilds/index.ts @@ -24,7 +24,7 @@ router.post("/", check(GuildCreateSchema), async (req: Request, res: Response) = const guild_id = Snowflake.generate(); const guild: Guild = { name: body.name, - region: body.region || "en-US", + region: Config.get().regions.default, owner_id: req.user_id, icon: undefined, afk_channel_id: undefined,