Skip to content

Commit

Permalink
remove default-to-null since that doesn't work
Browse files Browse the repository at this point in the history
idk what'll happen on a bad ID anymore so... we'll see?!
  • Loading branch information
mcmonkey4eva committed Nov 25, 2019
1 parent 8c4eb65 commit 317b5f9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public GuildCache getCachedGuild(long id) {
return cache;
}
}
Guild guild = client.getGuildById(Snowflake.of(id)).defaultIfEmpty(null).block();
Guild guild = client.getGuildById(Snowflake.of(id)).block();
if (guild == null) {
return null;
}
Expand Down

0 comments on commit 317b5f9

Please sign in to comment.