From 591fb53dea87c4b1dfc2285e800fa759e7912132 Mon Sep 17 00:00:00 2001 From: freya02 <41875020+freya022@users.noreply.github.com> Date: Sat, 5 Oct 2024 19:41:36 +0200 Subject: [PATCH] Add missing CheckReturnValue --- src/main/java/net/dv8tion/jda/api/utils/ImageProxy.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/net/dv8tion/jda/api/utils/ImageProxy.java b/src/main/java/net/dv8tion/jda/api/utils/ImageProxy.java index 45520a7d35..5adeae004f 100644 --- a/src/main/java/net/dv8tion/jda/api/utils/ImageProxy.java +++ b/src/main/java/net/dv8tion/jda/api/utils/ImageProxy.java @@ -200,6 +200,7 @@ public CompletableFuture downloadToPath(@Nonnull Path path, int size) * @return {@link CompletableFuture} which holds an {@link Icon}. */ @Nonnull + @CheckReturnValue public CompletableFuture downloadAsIcon() { return downloadAsIcon(getUrl()); @@ -221,6 +222,7 @@ public CompletableFuture downloadAsIcon() * @return {@link CompletableFuture} which holds an {@link Icon}. */ @Nonnull + @CheckReturnValue public CompletableFuture downloadAsIcon(int size) { return downloadAsIcon(getUrl(size));