mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-25 06:50:09 +08:00
Update to core 1.0.0
This commit is contained in:
parent
ccbe4e1fe0
commit
42385895cd
buildSrc/src/main/kotlin
mirai-console/src/main/kotlin/net/mamoe/mirai/console
@ -11,8 +11,8 @@ import org.gradle.kotlin.dsl.DependencyHandlerScope
|
||||
|
||||
object Versions {
|
||||
object Mirai {
|
||||
const val core = "1.0-RC2-1"
|
||||
const val console = "0.5.1"
|
||||
const val core = "1.0.0"
|
||||
const val console = "0.5.2"
|
||||
const val consoleGraphical = "0.0.7"
|
||||
}
|
||||
|
||||
|
@ -36,8 +36,13 @@ object MiraiConsole : CoroutineScope by CoroutineScope(EmptyCoroutineContext) {
|
||||
* 获取从Console登陆上的Bot, Bots
|
||||
* */
|
||||
@Suppress("DEPRECATION")
|
||||
@Deprecated("use Bot.instances from mirai-core", replaceWith = ReplaceWith("Bot.instances", "net.mamoe.mirai.Bot"))
|
||||
@Deprecated(
|
||||
"use Bot.botInstances from mirai-core",
|
||||
replaceWith = ReplaceWith("Bot.instances", "net.mamoe.mirai.Bot"),
|
||||
level = DeprecationLevel.ERROR
|
||||
)
|
||||
val bots: List<WeakRef<Bot>>
|
||||
@Suppress("DEPRECATION_ERROR")
|
||||
get() = Bot.instances
|
||||
|
||||
fun getBotOrNull(uin: Long): Bot? {
|
||||
|
Loading…
Reference in New Issue
Block a user