mirai
2.16.0
jvm
mirai-console
/
net.mamoe.mirai.console.permission
/
Permittee
Permittee
@
PermissionImplementation
interface
Permittee
可被赋予权限的对象, 即 '被许可人'.
被许可人自身不持有拥有的权限列表, 而是拥有
PermitteeId
, 标识自己的身份, 供
权限服务
处理.
注意
: 请不要自主实现
Permittee
See also
Command
Sender
Inheritors
CommandSender
Members
Members & Extensions
Functions
cancel
Link copied to clipboard
@
JvmStatic
fun
Permittee
.
cancel
(
vararg
permissions
:
Permission
,
recursive
:
Boolean
)
get
Permitted
Permissions
Link copied to clipboard
@
JvmStatic
fun
Permittee
.
getPermittedPermissions
(
)
:
Sequence
<
Permission
>
has
Permission
Link copied to clipboard
@
JvmStatic
fun
Permittee
.
hasPermission
(
permission
:
Permission
)
:
Boolean
@
JvmStatic
fun
Permittee
.
hasPermission
(
permissionId
:
PermissionId
)
:
Boolean
permit
Link copied to clipboard
@
JvmStatic
fun
Permittee
.
permit
(
vararg
permissions
:
Permission
)
Properties
permittee
Id
Link copied to clipboard
abstract
val
permitteeId
:
PermitteeId