From 7ff789afd371eabc57c0688f737d7334a16d5b11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wieland=20Sch=C3=B6bl?= Date: Wed, 2 Jun 2021 23:20:52 +0200 Subject: [PATCH] Revert "temporarily removed inactive servers message" This reverts commit 3d73d50a473e1123d8192f91c1285f55f60b3112. # Conflicts: # src/main/kotlin/org/hmcore/Channels.kt --- src/main/kotlin/org/hmcore/Channels.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/org/hmcore/Channels.kt b/src/main/kotlin/org/hmcore/Channels.kt index ef94c90..dd9a33f 100644 --- a/src/main/kotlin/org/hmcore/Channels.kt +++ b/src/main/kotlin/org/hmcore/Channels.kt @@ -125,7 +125,7 @@ object Channels { fun getServerNames(server: Long? = null): List? = 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 -> ""