MemberPermission

群成员的权限.

可通过 compareTo 判断是否有更高的权限.

若要获得成员的权限, 使用 Member.permission. 若要获得 Bot 在某个群的权限, 使用 Group.botPermission, 或 Group.botAsMember 再获取其 Member.permission.

See also

Member 的扩展函数, 判断此成员是否为群主

Member 的扩展函数, 判断此成员是否为管理员或群主

Member 的扩展函数, 判断此成员是否为管理员

Entries

Link copied to clipboard

一般群成员

Link copied to clipboard

管理员

Link copied to clipboard

群主

Functions

Link copied to clipboard

判断权限是否为管理员

Link copied to clipboard

判断权限是否为管理员或群主

Link copied to clipboard

判断权限是否为群主

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.

Properties

Link copied to clipboard
val level: Int

权限等级. OWNER 为 2, ADMINISTRATOR 为 1, MEMBER 为 0

Link copied to clipboard
Link copied to clipboard