mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-27 00:30:17 +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 {
|
public override fun CommandSender.hasPermission(): Boolean {
|
||||||
return this is MemberCommandSender && this.user.isAdministrator()
|
return this is MemberCommandSender && this.user.isAdministrator()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user