diff --git a/src/role.nim b/src/role.nim index 66d183c..176a66e 100644 --- a/src/role.nim +++ b/src/role.nim @@ -16,7 +16,8 @@ proc newRole*(json: JsonNode): Role = color: uint(json["color"].getInt()), hoist: json["hoist"].getBool(), position: uint(json["position"].getInt()), - permissions: newPermissions(json["permissions"]), managed: json["managed"].getBool(), mentionable: json["mentionable"].getBool() - ) \ No newline at end of file + ) + + result.permissions = newPermissions(result.id, PermissionType.permTypeRole, uint(json["permissions"].getInt())) \ No newline at end of file