Apply inline code formatting for Discord usernames and user details in StaffApplicationDiscord and AppealDiscord to avoid formatting them.

This commit is contained in:
akastijn 2025-11-28 19:55:23 +01:00
parent a6fbd19b6d
commit d1ff7b3f88
2 changed files with 4 additions and 4 deletions

View File

@ -47,7 +47,7 @@ public class AppealDiscord {
fields.add(new DiscordSender.EmbedField(
"User",
"""
Discord Username: %s
Discord Username: `%s`
Discord id: %s
MC UUID: %s
Submitted: %s
@ -118,7 +118,7 @@ public class AppealDiscord {
// Group: User
fields.add(new DiscordSender.EmbedField(
"User",
"Username: " + safe(appeal.username()) + "\n" +
"Username: `" + safe(appeal.username()) + "`\n" +
"UUID: " + safe(String.valueOf(appeal.uuid())) + "\n" +
"Submitted: " + createdAt,
false

View File

@ -47,8 +47,8 @@ public class StaffApplicationDiscord {
List<DiscordSender.EmbedField> fields = new ArrayList<>();
fields.add(new DiscordSender.EmbedField(
"Applicant",
"Username: " + safe(username) + "\n" +
"Discord: " + safe(application.discordUsername()) + "\n" +
"Username: `" + safe(username) + "`\n" +
"Discord: `" + safe(application.discordUsername()) + "`\n" +
"Email: " + safe(application.email()) + "\n" +
"Age: " + safe(String.valueOf(application.age())) + "\n" +
"Meets reqs: " + (application.meetsRequirements() != null && application.meetsRequirements()),