1
0
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:
Him188 2020-05-22 14:44:38 +08:00
parent ccbe4e1fe0
commit 42385895cd
2 changed files with 8 additions and 3 deletions
buildSrc/src/main/kotlin
mirai-console/src/main/kotlin/net/mamoe/mirai/console

View File

@ -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"
}

View File

@ -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? {