diff --git a/src/main/java/de/joshicodes/rja/object/server/Server.java b/src/main/java/de/joshicodes/rja/object/server/Server.java index 0a5fd36..66c49c7 100644 --- a/src/main/java/de/joshicodes/rja/object/server/Server.java +++ b/src/main/java/de/joshicodes/rja/object/server/Server.java @@ -37,7 +37,7 @@ public static Server from(final RJA rja, final JsonObject object) { for(String roleId : rolesObject.keySet()) { JsonObject roleObject = rolesObject.getAsJsonObject(roleId); if(roleObject == null) continue; - Role role = Role.from(rja, id, roleObject); + Role role = Role.from(rja, roleId, roleObject); roles.add(role); } }