Commit 4b05cb45 authored by Him188's avatar Him188

Use `List` instead of `Sequence`

parent 373ad9e8
...@@ -56,8 +56,8 @@ abstract class Bot : CoroutineScope, LowLevelBotAPIAccessor, BotJavaFriendlyAPI( ...@@ -56,8 +56,8 @@ abstract class Bot : CoroutineScope, LowLevelBotAPIAccessor, BotJavaFriendlyAPI(
* 复制一份此时的 [Bot] 实例列表. * 复制一份此时的 [Bot] 实例列表.
*/ */
@JvmStatic @JvmStatic
val instances: Sequence<Bot> val instances: List<Bot>
get() = BotImpl.instances.asSequence().mapNotNull { it.get() } get() = BotImpl.instances.asSequence().mapNotNull { it.get() }.toList()
@Deprecated("for binary compatibility", level = DeprecationLevel.HIDDEN) @Deprecated("for binary compatibility", level = DeprecationLevel.HIDDEN)
@JvmStatic @JvmStatic
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment