Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,11 @@ private RestAction<Message> sendInitialMessage(Guild guild, ThreadChannel thread
.map(role -> " (%s)".formatted(role.getAsMention()))
.orElse("");

String contentPattern = "%s has a question about '**%s**'%%s and will send the details now."
.formatted(author.getAsMention(), title);
String contentWithoutRole = contentPattern.formatted("");
String contentWithRole = contentPattern.formatted(roleMentionDescription);
String contentPrefix =
"%s has a question about '**%s**'".formatted(author.getAsMention(), title);
String contentSuffix = " and will send the details now.";
String contentWithoutRole = contentPrefix + contentSuffix;
String contentWithRole = contentPrefix + roleMentionDescription + contentSuffix;

// We want to invite all members of a role, but without hard-pinging them. However,
// manually inviting them is cumbersome and can hit rate limits.
Expand Down