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.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/routes/guilds/templates/index.ts b/src/routes/guilds/templates/index.ts

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