Skip to content

Commit d7bc1d0

Browse files
committed
use getJumpUrl instead of manually encoding Discord URL
1 parent 5a1d091 commit d7bc1d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/javadiscord/javabot/systems/help/HelpForumUpdater.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ private MessageEmbed createDMDormantInfo(ThreadChannel post, HelpConfig config)
9999
post.getAsMention(),
100100
post.getParentChannel().getAsMention(),
101101
config.getInactivityTimeoutMinutes(),
102-
"https://discord.com/channels/" + post.getGuild().getId() + "/" + post.getId()))
102+
post.getJumpUrl()))
103103
.build()
104104
;
105105
}

0 commit comments

Comments
 (0)