Skip to content

Commit

Permalink
Fix getJumpUrl() in ReceivedMessage for DMs (#1092)
Browse files Browse the repository at this point in the history
* Fix getJumpUrl() in ReceivedMessage for DMs

* Switch to isFromGuild() in ReceivedMessage#getJumpUrl()
  • Loading branch information
kantenkugel authored and DV8FromTheWorld committed Sep 3, 2019
1 parent ca60790 commit 48c7474
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -174,7 +174,7 @@ public long getIdLong()
@Override
public String getJumpUrl()
{
return String.format("https://discordapp.com/channels/%s/%s/%s", getGuild() == null ? "@me" : getGuild().getId(), getChannel().getId(), getId());
return String.format("https://discordapp.com/channels/%s/%s/%s", isFromGuild() ? getGuild().getId() : "@me", getChannel().getId(), getId());
}

private User matchUser(Matcher matcher)
Expand Down

0 comments on commit 48c7474

Please sign in to comment.