Skip to content

Commit

Permalink
fix(cache): added a backup decompile method to sort out backwards com…
Browse files Browse the repository at this point in the history
…patibility
  • Loading branch information
seailz committed Oct 30, 2023
1 parent 839a824 commit 68dac95
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 @@ -384,6 +384,11 @@ public JSONObject compile() {
.put("safety_alerts_channel_id", safetyAlertChannelId);
}

@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 68dac95

Please sign in to comment.