|
5 | 5 | import net.dv8tion.jda.api.JDA; |
6 | 6 | import net.dv8tion.jda.api.entities.*; |
7 | 7 | import net.dv8tion.jda.api.entities.channel.concrete.Category; |
| 8 | +import net.dv8tion.jda.api.entities.channel.concrete.ForumChannel; |
8 | 9 | import net.dv8tion.jda.api.entities.channel.concrete.TextChannel; |
9 | 10 | import net.dv8tion.jda.api.entities.emoji.Emoji; |
10 | 11 | import net.dv8tion.jda.api.interactions.components.ActionRow; |
@@ -384,7 +385,7 @@ private void updateHelpOverview() { |
384 | 385 | List<TextChannel> availableChannels = config.getOpenChannelCategory().getTextChannels(); |
385 | 386 | List<Button> buttons = new ArrayList<>(2); |
386 | 387 | if (!availableChannels.isEmpty()) { |
387 | | - buttons.add(Button.link(availableChannels.get(0).getJumpUrl(), "Show me an available Help Channel!")); |
| 388 | + buttons.add(Button.link(availableChannels.get(0).getJumpUrl(), "Show me an Available Help Channel!")); |
388 | 389 | } |
389 | 390 | buttons.add(Button.link(StringResourceCache.load("/help_overview/overview_image_url.txt"), "How does this work?")); |
390 | 391 | channel.retrieveMessageById(messageId).queue( |
@@ -428,12 +429,13 @@ private void updateHelpOverview() { |
428 | 429 | e -> ExceptionLogger.capture(e, getClass().getSimpleName()) |
429 | 430 | ); |
430 | 431 | } |
| 432 | + ForumChannel forum = Bot.getConfig().get(config.getGuild()).getHelpForumConfig().getHelpForumChannel(); |
431 | 433 | EmbedBuilder builder = new EmbedBuilder() |
432 | 434 | .setTitle("Help Overview") |
433 | 435 | .setColor(Responses.Type.DEFAULT.getColor()) |
434 | 436 | .setDescription(availableHelpChannels.isEmpty() ? |
435 | | - String.format("There are no help channels available to claim. How about using our new **[Help Forum](%s)** then?", |
436 | | - Bot.getConfig().get(config.getGuild()).getHelpForumConfig().getHelpForumChannel().getJumpUrl()) : |
| 437 | + String.format("There are no help channels available to claim.%nHow about using our new **[Help Forum](%s)** (%s) then?", |
| 438 | + forum.getJumpUrl(), forum.getAsMention()) : |
437 | 439 | availableHelpChannels + " are __**available**__ to claim!") |
438 | 440 | .setFooter("Last refreshed: ") |
439 | 441 | .setTimestamp(Instant.now()); |
|
0 commit comments