Migrate deprecated calls

This commit is contained in:
Him188 2020-12-14 20:31:27 +08:00
parent c66eebfda4
commit 07fc0cbf0a
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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"),
)