mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-05 07:30:09 +08:00
Use List
instead of Sequence
This commit is contained in:
parent
373ad9e8aa
commit
4b05cb45d1
@ -56,8 +56,8 @@ abstract class Bot : CoroutineScope, LowLevelBotAPIAccessor, BotJavaFriendlyAPI(
|
||||
* 复制一份此时的 [Bot] 实例列表.
|
||||
*/
|
||||
@JvmStatic
|
||||
val instances: Sequence<Bot>
|
||||
get() = BotImpl.instances.asSequence().mapNotNull { it.get() }
|
||||
val instances: List<Bot>
|
||||
get() = BotImpl.instances.asSequence().mapNotNull { it.get() }.toList()
|
||||
|
||||
@Deprecated("for binary compatibility", level = DeprecationLevel.HIDDEN)
|
||||
@JvmStatic
|
||||
|
Loading…
Reference in New Issue
Block a user