diff --git "a/src/routes/guilds/\043guild_id/templates.ts" "b/src/routes/guilds/\043guild_id/templates.ts" index 7b82077..61b2f9d 100644 --- "a/src/routes/guilds/\043guild_id/templates.ts" +++ "b/src/routes/guilds/\043guild_id/templates.ts" @@ -30,10 +30,10 @@ const user = await UserModel.findOne({ id: req.user_id }).exec(); if (!user) throw new HTTPError("User not found", 404); - /*const perms = await getPermission(req.user_id, guild_id); + const perms = await getPermission(req.user_id, guild_id); if (!perms.has("MANAGE_GUILD")) - throw new HTTPError("You missing the MANAGE_GUILD permission", 401);*/ + throw new HTTPError("You missing the MANAGE_GUILD permission", 401); const template_id = Snowflake.generate();