Skip to content

Commit 700eb0f

Browse files
committed
Add link to possible changelog URL in MC update embed
1 parent 53e382a commit 700eb0f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/commander/java/com/mcmoddev/mmdbot/commander/updatenotifiers/minecraft/MinecraftUpdateNotifier.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,14 @@ protected EmbedBuilder getEmbed(@Nullable final VersionsInfo oldVersion, final @
6666
}
6767
final var embed = new EmbedBuilder();
6868
if (!oldVersion.release().equals(newVersion.release())) {
69+
// https://www.minecraft.net/en-us/article/minecraft-java-edition-1-18-1
6970
embed.setTitle("New Minecraft release available!");
70-
embed.setDescription(newVersion.release());
71+
embed.setDescription(newVersion.release() + "\nChangelog: " + "https://www.minecraft.net/en-us/article/minecraft-java-edition-%s".formatted(newVersion.release().replace('.', '-')));
7172
embed.setColor(Color.GREEN);
7273
} else {
74+
// https://www.minecraft.net/en-us/article/minecraft-snapshot-23w07a
7375
embed.setTitle("New Minecraft snapshot available!");
74-
embed.setDescription(newVersion.snapshot());
76+
embed.setDescription(newVersion.snapshot() + "\nChangelog: " + "https://www.minecraft.net/en-us/article/minecraft-snapshot-%s".formatted(newVersion.snapshot()));
7577
embed.setColor(Color.CYAN);
7678
}
7779
return embed;

0 commit comments

Comments
 (0)