From 3d73d50a473e1123d8192f91c1285f55f60b3112 Mon Sep 17 00:00:00 2001 From: UnrealValentin Date: Wed, 2 Jun 2021 23:04:29 +0200 Subject: [PATCH] temporarily removed inactive servers message --- 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 dd9a33f..ef94c90 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 + val channel = jda.getTextChannelById(it.id) ?: return@mapNotNull null //TODO: ad channel not working message val role = when (it.mentionedRole) { null -> ""