Skip to content

Commit

Permalink
Fix Message.Attachment#getProxy() (#2139)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xirado committed May 26, 2022
1 parent 215d275 commit 1dbc262
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/dv8tion/jda/api/entities/Message.java
Expand Up @@ -2709,7 +2709,7 @@ public String getProxyUrl()
@Nonnull
public AttachmentProxy getProxy()
{
return new AttachmentProxy(getProxyUrl());
return new AttachmentProxy(width > 0 && height > 0 ? proxyUrl : url);
}

/**
Expand Down

0 comments on commit 1dbc262

Please sign in to comment.