mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-05 23:50:08 +08:00
minor: move NormalMember.kick
overloads from mirai-core to mirai-core-api
This commit is contained in:
parent
a8e3916261
commit
25970cbf56
@ -124,7 +124,7 @@ public interface NormalMember : Member {
|
||||
* @throws PermissionDeniedException 无权限修改时
|
||||
*
|
||||
*/
|
||||
public suspend fun kick(message: String)
|
||||
public suspend fun kick(message: String): Unit = kick(message, false)
|
||||
|
||||
|
||||
/**
|
||||
|
@ -163,10 +163,6 @@ internal class NormalMemberImpl constructor(
|
||||
this._muteTimestamp = 0
|
||||
}
|
||||
|
||||
override suspend fun kick(message: String) {
|
||||
kick(message, false)
|
||||
}
|
||||
|
||||
override suspend fun kick(message: String, block: Boolean) {
|
||||
checkBotPermissionHigherThanThis("kick")
|
||||
check(group.members[this.id] != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user