mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-10 18:40:15 +08:00
Adjust default CommandPermission names
This commit is contained in:
parent
82e47a1bf3
commit
33f6a9aff1
@ -83,7 +83,7 @@ public fun interface CommandPermission {
|
||||
/**
|
||||
* 管理员 (不包含群主) 可以使用这个指令
|
||||
*/
|
||||
public object Administrator : CommandPermission {
|
||||
public object GroupAdmin : CommandPermission {
|
||||
public override fun CommandSender.hasPermission(): Boolean {
|
||||
return this is MemberCommandSender && this.user.isAdministrator()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user