Revert "temporarily removed inactive servers message"

This reverts commit 3d73d50a47.

# Conflicts:
#	src/main/kotlin/org/hmcore/Channels.kt
This commit is contained in:
Wieland Schöbl
2021-06-02 23:20:52 +02:00
parent c9acfdc79e
commit 7ff789afd3

View File

@@ -125,7 +125,7 @@ object Channels {
fun getServerNames(server: Long? = null): List<String>? = Main.jdas.flatMap { jda ->
channels.filter { server == null || (jda.getTextChannelById(it.id)?.guild?.idLong == server) }.mapNotNull {
val channel = jda.getTextChannelById(it.id) ?: return@mapNotNull null //TODO: ad channel not working message
val channel = jda.getTextChannelById(it.id) ?: return@mapNotNull null
val role = when (it.mentionedRole) {
null -> ""