Use config default region for new Guilds

This commit is contained in:
Paul Munteanu 2021-07-26 02:19:45 +03:00
parent 16ef891781
commit 1b6358a151
No known key found for this signature in database
GPG Key ID: 4C0797E4861E8917

View File

@ -24,7 +24,7 @@ router.post("/", check(GuildCreateSchema), async (req: Request, res: Response) =
const guild_id = Snowflake.generate(); const guild_id = Snowflake.generate();
const guild: Guild = { const guild: Guild = {
name: body.name, name: body.name,
region: body.region || "en-US", region: Config.get().regions.default,
owner_id: req.user_id, owner_id: req.user_id,
icon: undefined, icon: undefined,
afk_channel_id: undefined, afk_channel_id: undefined,