mirror of
https://github.com/HMCore/Orbot.git
synced 2025-12-12 05:46:16 +00:00
Revert "temporarily removed inactive servers message"
This reverts commit 3d73d50a47.
# Conflicts:
# src/main/kotlin/org/hmcore/Channels.kt
This commit is contained in:
@@ -125,7 +125,7 @@ object Channels {
|
|||||||
|
|
||||||
fun getServerNames(server: Long? = null): List<String>? = Main.jdas.flatMap { jda ->
|
fun getServerNames(server: Long? = null): List<String>? = Main.jdas.flatMap { jda ->
|
||||||
channels.filter { server == null || (jda.getTextChannelById(it.id)?.guild?.idLong == server) }.mapNotNull {
|
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) {
|
val role = when (it.mentionedRole) {
|
||||||
null -> ""
|
null -> ""
|
||||||
|
|||||||
Reference in New Issue
Block a user