File tree Expand file tree Collapse file tree
src/com/namelessmc/NamelessAPI Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ public List<Notification> getNotifications() throws NamelessException {
223223 final List <Notification > notifications = new ArrayList <>();
224224
225225 final JsonObject object = request .getResponse ();
226- object .getAsJsonArray ().forEach ((element ) -> {
226+ object .getAsJsonArray ("notifications" ).forEach ((element ) -> {
227227 final String message = element .getAsJsonObject ().get ("message" ).getAsString ();
228228 final String url = element .getAsJsonObject ().get ("url" ).getAsString ();
229229 final NotificationType type = NotificationType .fromString (element .getAsJsonObject ().get ("type" ).getAsString ());
Original file line number Diff line number Diff line change @@ -25,7 +25,8 @@ public NotificationType getType() {
2525 }
2626
2727 public static enum NotificationType {
28-
28+
29+ TAG ,
2930 MESSAGE ,
3031 LIKE ,
3132 PROFILE_COMMENT ,
You can’t perform that action at this time.
0 commit comments