Skip to content

Commit

Permalink
Merge pull request #252 from discord-jar/main
Browse files Browse the repository at this point in the history
fix(cache): added a backup decompile method to sort out backwards com…
  • Loading branch information
seailz authored Oct 30, 2023
2 parents f49d78f + 68dac95 commit 92583af
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/com/seailz/discordjar/model/guild/Guild.java
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,11 @@ public JSONObject compile() {
.put("incidents_data", incidentsData.compile());
}

@NotNull
public static Guild decompile(JSONObject obj, DiscordJar discordJar) {
return decompile(obj, discordJar, false);
}

@NotNull
public static Guild decompile(JSONObject obj, DiscordJar discordJar, boolean bypassCache) {
System.out.println("decomp guild");
Expand Down

0 comments on commit 92583af

Please sign in to comment.