Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -363,19 +363,19 @@ private void executeNoActivityAdviceCheck(long threadChannelId, long authorId) {
threadChannelId, authorId);
return;
}
if (noAuthorActivity(authorId, threadChannel)) {
if (hasNoAuthorActivity(authorId, threadChannel)) {
MessageEmbed embed = HelpSystemHelper.embedWith(
"""
Hey there %s👋 It has been a bit after you created this thread and you still did not share any details of your question.
Hey there %s👋 It has been a bit after you created this thread and you still did not share any details of your question.
Helpers have seen your question already and are just waiting for you to elaborate on your problem and provide detailed information on it 👌
"""
.formatted(User.fromId(authorId).getAsMention()));
threadChannel.sendMessageEmbeds(embed).queue();
}
}

private static boolean noAuthorActivity(long authorId, ThreadChannel threadChannel) {
return threadChannel.getIterableHistory()
private static boolean hasNoAuthorActivity(long authorId, ThreadChannel threadChannel) {
return threadChannel.getHistory().size() >= 10 || threadChannel.getIterableHistory()
.stream()
.limit(10)
.map(Message::getAuthor)
Expand Down