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

index 21a3a6aa..a7af8295 100644 --- a/src/routes/guilds/templates/index.ts +++ b/src/routes/guilds/templates/index.ts
@@ -21,7 +21,7 @@ router.post("/:code", check(GuildTemplateCreateSchema), async (req: Request, res const { code } = req.params; const body = req.body as GuildTemplateCreateSchema; - const { maxGuilds } = (Config.apiConfig.getAll() as Config.DefaultOptions).limits.user; + const { maxGuilds } = Config.apiConfig.getAll().limits.user; const user = await getPublicUser(req.user_id, { guilds: true }); if (user.guilds.length >= maxGuilds) {