mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-13 20:02:57 +08:00
Update to 2.0-M2 (2.0-M2-dev-14)
This commit is contained in:
parent
113fc20cf9
commit
7dc5485cea
@ -561,8 +561,6 @@ public open class TempCommandSender internal constructor(
|
|||||||
|
|
||||||
@JvmBlockingBridge
|
@JvmBlockingBridge
|
||||||
public override suspend fun sendMessage(message: Message): MessageReceipt<Member> {
|
public override suspend fun sendMessage(message: Message): MessageReceipt<Member> {
|
||||||
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
|
||||||
@OptIn(net.mamoe.mirai.utils.MemberDeprecatedApi::class)
|
|
||||||
return user.sendMessage(message) // just throw this error
|
return user.sendMessage(message) // just throw this error
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -74,7 +74,7 @@ public object ContactUtils {
|
|||||||
@JvmStatic
|
@JvmStatic
|
||||||
@ConsoleExperimentalApi
|
@ConsoleExperimentalApi
|
||||||
public fun Bot.getFriendOrGroupOrNull(id: Long): Contact? {
|
public fun Bot.getFriendOrGroupOrNull(id: Long): Contact? {
|
||||||
return this.friends.getOrNull(id) ?: this.groups.getOrNull(id)
|
return this.friends[id] ?: this.groups[id]
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -12,8 +12,8 @@
|
|||||||
import org.gradle.api.attributes.Attribute
|
import org.gradle.api.attributes.Attribute
|
||||||
|
|
||||||
object Versions {
|
object Versions {
|
||||||
const val core = "2.0-M2-dev-4"
|
const val core = "2.0-M2-dev-14"
|
||||||
const val console = "2.0-M2-dev-4"
|
const val console = "2.0-M2-dev-14"
|
||||||
const val consoleGraphical = "0.0.7"
|
const val consoleGraphical = "0.0.7"
|
||||||
const val consoleTerminal = console
|
const val consoleTerminal = console
|
||||||
|
|
||||||
@ -26,7 +26,7 @@ object Versions {
|
|||||||
|
|
||||||
const val coroutines = "1.4.0"
|
const val coroutines = "1.4.0"
|
||||||
const val serialization = "1.0.1"
|
const val serialization = "1.0.1"
|
||||||
const val ktor = "1.4.3"
|
const val ktor = "1.5.0"
|
||||||
const val atomicFU = "0.14.4"
|
const val atomicFU = "0.14.4"
|
||||||
|
|
||||||
const val androidGradle = "3.6.2"
|
const val androidGradle = "3.6.2"
|
||||||
|
@ -10,6 +10,6 @@
|
|||||||
package net.mamoe.mirai.console.gradle
|
package net.mamoe.mirai.console.gradle
|
||||||
|
|
||||||
internal object VersionConstants {
|
internal object VersionConstants {
|
||||||
const val CONSOLE_VERSION = "2.0-M2-dev-4" // value is written here automatically during build
|
const val CONSOLE_VERSION = "2.0-M2-dev-14" // value is written here automatically during build
|
||||||
const val CORE_VERSION = "2.0-M2-dev-4" // value is written here automatically during build
|
const val CORE_VERSION = "2.0-M2-dev-14" // value is written here automatically during build
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user