Skip to content

Commit 1c78c27

Browse files
committed
Use jump URL template provided by JDA
1 parent 7aadb16 commit 1c78c27

File tree

1 file changed

+3
-1
lines changed
  • src/core/java/com/mcmoddev/mmdbot/core/util

1 file changed

+3
-1
lines changed

src/core/java/com/mcmoddev/mmdbot/core/util/Utils.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
*/
2121
package com.mcmoddev.mmdbot.core.util;
2222

23+
import net.dv8tion.jda.api.entities.Message;
24+
2325
import java.io.BufferedReader;
2426
import java.io.InputStreamReader;
2527
import java.net.URL;
@@ -95,7 +97,7 @@ public static void scheduleTask(final ScheduledExecutorService service, final Ru
9597
* @return the message link
9698
*/
9799
public static String makeMessageLink(final long guildId, final long channelId, final long messageId) {
98-
return "https://discord.com/channels/%s/%s/%s".formatted(guildId, channelId, messageId);
100+
return Message.JUMP_URL.formatted(guildId, channelId, messageId);
99101
}
100102

101103
}

0 commit comments

Comments
 (0)