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
|
||||
override suspend fun kick(message: String) {
|
||||
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}"
|
||||
}
|
||||
bot.network.run {
|
||||
|
@ -43,7 +43,7 @@ internal class MessageSerializationTest {
|
||||
|
||||
private val testMessageContentInstances: Array<out MessageContent> = arrayOf(
|
||||
PlainText("test"),
|
||||
At._lowLevelConstructAtInstance(123456, ""),
|
||||
At(123456),
|
||||
AtAll,
|
||||
Image("{01E9451B-70ED-EAE3-B37C-101F1EEBF5B5}.mirai"),
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user