Skip to content

Commit 8b285c7

Browse files
committed
alt format name links code block
1 parent 6dcd439 commit 8b285c7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/vc/api/model/ProfileData.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ public interface ProfileData {
88
String name();
99
UUID uuid();
1010

11-
default String getNameMCLink(UUID uuid) {
12-
return "https://namemc.com/profile/" + uuid.toString();
11+
default String getNameMCLink() {
12+
return "https://namemc.com/profile/" + uuid().toString();
1313
}
1414

1515
default String getAvatarURL() {
@@ -27,8 +27,8 @@ default String toDiscordFieldValue() {
2727
// discord markdown does not support escaping inside links
2828
// well, it does, but the backslashes are always visible so its arguably worse
2929
// https://github.com/discord/discord-api-docs/issues/6185
30-
fmt = "%s ([link](%s))";
30+
fmt = "[`%s`](%s)";
3131
}
32-
return String.format(fmt, nameEscaped, getNameMCLink(uuid()));
32+
return String.format(fmt, name(), getNameMCLink());
3333
}
3434
}

0 commit comments

Comments
 (0)