mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-22 05:10:09 +08:00
Migrate deprecated calls
This commit is contained in:
parent
c66eebfda4
commit
07fc0cbf0a
@ -230,7 +230,7 @@ internal class MemberImpl constructor(
|
|||||||
@JvmSynthetic
|
@JvmSynthetic
|
||||||
override suspend fun kick(message: String) {
|
override suspend fun kick(message: String) {
|
||||||
checkBotPermissionHigherThanThis("kick")
|
checkBotPermissionHigherThanThis("kick")
|
||||||
check(group.members.getOrNull(this.id) != null) {
|
check(group.members[this.id] != null) {
|
||||||
"Member ${this.id} had already been kicked from group ${group.id}"
|
"Member ${this.id} had already been kicked from group ${group.id}"
|
||||||
}
|
}
|
||||||
bot.network.run {
|
bot.network.run {
|
||||||
|
@ -43,7 +43,7 @@ internal class MessageSerializationTest {
|
|||||||
|
|
||||||
private val testMessageContentInstances: Array<out MessageContent> = arrayOf(
|
private val testMessageContentInstances: Array<out MessageContent> = arrayOf(
|
||||||
PlainText("test"),
|
PlainText("test"),
|
||||||
At._lowLevelConstructAtInstance(123456, ""),
|
At(123456),
|
||||||
AtAll,
|
AtAll,
|
||||||
Image("{01E9451B-70ED-EAE3-B37C-101F1EEBF5B5}.mirai"),
|
Image("{01E9451B-70ED-EAE3-B37C-101F1EEBF5B5}.mirai"),
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user