minor: move NormalMember.kick overloads from mirai-core to mirai-core-api

This commit is contained in:
Him188 2021-11-26 17:58:56 +00:00
parent a8e3916261
commit 25970cbf56
2 changed files with 1 additions and 5 deletions

View File

@ -124,7 +124,7 @@ public interface NormalMember : Member {
* @throws PermissionDeniedException 无权限修改时 * @throws PermissionDeniedException 无权限修改时
* *
*/ */
public suspend fun kick(message: String) public suspend fun kick(message: String): Unit = kick(message, false)
/** /**

View File

@ -163,10 +163,6 @@ internal class NormalMemberImpl constructor(
this._muteTimestamp = 0 this._muteTimestamp = 0
} }
override suspend fun kick(message: String) {
kick(message, false)
}
override suspend fun kick(message: String, block: Boolean) { override suspend fun kick(message: String, block: Boolean) {
checkBotPermissionHigherThanThis("kick") checkBotPermissionHigherThanThis("kick")
check(group.members[this.id] != null) { check(group.members[this.id] != null) {