mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-25 07:30:14 +08:00
Revert "Add MiraiConsoleImplementation.isInitialized", postpone to 1.1.0
This reverts commit 8f61943c
This commit is contained in:
parent
ecef9f8c01
commit
3b39be6bdc
@ -185,27 +185,12 @@ public interface MiraiConsoleImplementation : CoroutineScope {
|
||||
* 可由前端调用, 获取当前的 [MiraiConsoleImplementation] 实例
|
||||
*
|
||||
* 必须在 [start] 之后才能使用, 否则抛出 [UninitializedPropertyAccessException]
|
||||
*
|
||||
* @see isInitialized
|
||||
*/
|
||||
@JvmStatic
|
||||
@ConsoleFrontEndImplementation
|
||||
public fun getInstance(): MiraiConsoleImplementation = instance
|
||||
|
||||
/**
|
||||
* 当 [MiraiConsoleImplementation] 已经初始化后返回 `true`
|
||||
*/
|
||||
@JvmStatic
|
||||
@ConsoleFrontEndImplementation
|
||||
public val isInitialized: Boolean
|
||||
get() = ::instance.isInitialized
|
||||
|
||||
/**
|
||||
* 由前端调用, 初始化 [MiraiConsole] 实例并启动
|
||||
*
|
||||
* @see getInstance
|
||||
* @see isInitialized
|
||||
*/
|
||||
/** 由前端调用, 初始化 [MiraiConsole] 实例并启动 */
|
||||
@JvmStatic
|
||||
@ConsoleFrontEndImplementation
|
||||
@Throws(MalformedMiraiConsoleImplementationError::class)
|
||||
|
Loading…
Reference in New Issue
Block a user