Uses of Class
org.javacord.api.entity.permission.PermissionType
-
Packages that use PermissionType Package Description org.javacord.api.entity.channel org.javacord.api.entity.permission org.javacord.api.entity.permission.internal org.javacord.api.entity.server -
-
Uses of PermissionType in org.javacord.api.entity.channel
Methods in org.javacord.api.entity.channel that return types with arguments of type PermissionType Modifier and Type Method Description default Collection<PermissionType>ServerChannel. getEffectiveAllowedPermissions(User user)Gets the effective allowed permissions of a user in this channel.default Collection<PermissionType>ServerChannel. getEffectiveDeniedPermissions(User user)Gets the effective denied permissions of a user in this channel.Methods in org.javacord.api.entity.channel with parameters of type PermissionType Modifier and Type Method Description default booleanServerChannel. hasAnyPermission(User user, PermissionType... type)Checks if the user has any of a given set of permissions.default booleanServerChannel. hasPermission(User user, PermissionType permission)Checks if a user has a given permission.default booleanServerChannel. hasPermissions(User user, PermissionType... type)Checks if the user has a given set of permissions. -
Uses of PermissionType in org.javacord.api.entity.permission
Methods in org.javacord.api.entity.permission that return PermissionType Modifier and Type Method Description static PermissionTypePermissionType. valueOf(String name)Returns the enum constant of this type with the specified name.static PermissionType[]PermissionType. values()Returns an array containing the constants of this enum type, in the order they are declared.Methods in org.javacord.api.entity.permission that return types with arguments of type PermissionType Modifier and Type Method Description default Collection<PermissionType>Permissions. getAllowedPermission()Gets a collection with permission types which are set to (PermissionState.ALLOWED).default Collection<PermissionType>Role. getAllowedPermissions()Gets the allowed permissions of the role.default Collection<PermissionType>Permissions. getDeniedPermissions()Gets a collection with permission types which are set to (PermissionState.DENIED).default Collection<PermissionType>Permissions. getUnsetPermissions()Gets a collection with permission types which are set to (PermissionState.UNSET).default Collection<PermissionType>Role. getUnsetPermissions()Gets the unset permissions of the role.Methods in org.javacord.api.entity.permission with parameters of type PermissionType Modifier and Type Method Description PermissionStatePermissions. getState(PermissionType type)Gets the state of the given type.PermissionStatePermissionsBuilder. getState(PermissionType type)Gets the state of the given type.PermissionsBuilderPermissionsBuilder. setAllowed(PermissionType... types)Sets the state for the given types toPermissionState.ALLOWED.PermissionsBuilderPermissionsBuilder. setDenied(PermissionType... types)Sets the state for the given types toPermissionState.DENIED.PermissionsBuilderPermissionsBuilder. setState(PermissionType type, PermissionState state)Sets the new state of the given type.PermissionsBuilderPermissionsBuilder. setUnset(PermissionType... types)Sets the state for the given types toPermissionState.UNSET. -
Uses of PermissionType in org.javacord.api.entity.permission.internal
Methods in org.javacord.api.entity.permission.internal with parameters of type PermissionType Modifier and Type Method Description PermissionStatePermissionsBuilderDelegate. getState(PermissionType type)Gets the state of the given type.voidPermissionsBuilderDelegate. setState(PermissionType type, PermissionState state)Sets the new state of the given type. -
Uses of PermissionType in org.javacord.api.entity.server
Methods in org.javacord.api.entity.server that return types with arguments of type PermissionType Modifier and Type Method Description default Collection<PermissionType>Server. getAllowedPermissions(User user)Get the allowed permissions of a given user.default Collection<PermissionType>Server. getUnsetPermissions(User user)Get the unset permissions of a given user.Methods in org.javacord.api.entity.server with parameters of type PermissionType Modifier and Type Method Description default booleanServer. hasAnyPermission(User user, PermissionType... type)Checks if the user has any of a given set of permissions.default booleanServer. hasPermission(User user, PermissionType permission)Checks if a user has a given permission.default booleanServer. hasPermissions(User user, PermissionType... type)Checks if the user has a given set of permissions.
-