aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/com/pinapelz/Retriever.java
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-12-29 11:15:58 -0800
committerPinapelz <yukais@pinapelz.com>2025-12-29 11:15:58 -0800
commit2025e3e5e56ca22a23f47005175dc8ce254024d6 (patch)
treecd2267f53d39536f678174c68b4d44fa924f547d /src/main/java/com/pinapelz/Retriever.java
parentfbe9b9eb7a462b42f235d100811b377659101b3c (diff)
implement basic webui
Diffstat (limited to 'src/main/java/com/pinapelz/Retriever.java')
-rw-r--r--src/main/java/com/pinapelz/Retriever.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/com/pinapelz/Retriever.java b/src/main/java/com/pinapelz/Retriever.java
index 1d78785..856dab1 100644
--- a/src/main/java/com/pinapelz/Retriever.java
+++ b/src/main/java/com/pinapelz/Retriever.java
@@ -4,8 +4,6 @@ import net.dv8tion.jda.api.JDA;
import net.dv8tion.jda.api.entities.Message;
import net.dv8tion.jda.api.entities.channel.concrete.TextChannel;
-import java.util.concurrent.CompletableFuture;
-
public class Retriever {
private final JDA jda;
@@ -25,7 +23,7 @@ public class Retriever {
for (Message.Attachment file : message.getAttachments()) {
if (file.getFileName().equals(fileName)) {
- return file.getUrl();
+ return file.getProxyUrl();
}
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage