Uses of Class
org.javacord.api.entity.permission.PermissionType
-
-
Uses of PermissionType in org.javacord.api
Methods in org.javacord.api with parameters of type PermissionType Modifier and Type Method Description BotInviteBuilderBotInviteBuilder. setPermissions(PermissionType... permissions)Sets the permissions the bot should have. -
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 java.util.Set<PermissionType>RegularServerChannel. getEffectiveAllowedPermissions(User user)Gets the effective allowed permissions of a user in this channel.default java.util.Set<PermissionType>RegularServerChannel. 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 booleanRegularServerChannel. hasAnyPermission(User user, PermissionType... type)Checks if the user has any of a given set of permissions.default booleanRegularServerChannel. hasPermission(User user, PermissionType permission)Checks if a user has a given permission.default booleanRegularServerChannel. 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(java.lang.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 java.util.Set<PermissionType>Permissions. getAllowedPermission()Gets the permission types which are set to (PermissionState.ALLOWED).default java.util.Set<PermissionType>Role. getAllowedPermissions()Gets the allowed permissions of the role.default java.util.Set<PermissionType>Permissions. getDeniedPermissions()Gets the permission types which are set to (PermissionState.DENIED).default java.util.Set<PermissionType>Permissions. getUnsetPermissions()Gets the permission types which are set to (PermissionState.UNSET).default java.util.Set<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 java.util.Set<PermissionType>Server. getAllowedPermissions(User user)Get the allowed permissions of a given user.default java.util.Set<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. -
Uses of PermissionType in org.javacord.api.interaction
Methods in org.javacord.api.interaction that return types with arguments of type PermissionType Modifier and Type Method Description java.util.Optional<java.util.EnumSet<PermissionType>>InteractionBase. getBotPermissions()Gets the permissions the bot has within the channel the interaction was sent from.java.util.Optional<java.util.EnumSet<PermissionType>>ApplicationCommand. getDefaultRequiredPermissions()Gets the default required permissions for this command.Methods in org.javacord.api.interaction with parameters of type PermissionType Modifier and Type Method Description TApplicationCommandBuilder. setDefaultEnabledForPermissions(PermissionType... requiredPermissions)Sets the default required permissions to be able to use this command.BApplicationCommandUpdater. setDefaultEnabledForPermissions(PermissionType... requiredPermissions)Sets the default required permissions to be able to use this command.static MessageContextMenuBuilderMessageContextMenu. withRequiredPermissions(java.lang.String name, PermissionType... requiredPermissions)Create a new message context menu command builder with the given name and description.static SlashCommandBuilderSlashCommand. withRequiredPermissions(java.lang.String name, java.lang.String description, java.util.List<SlashCommandOption> options, PermissionType... requiredPermissions)Create a new slash command builder with the given name, description and options.static SlashCommandBuilderSlashCommand. withRequiredPermissions(java.lang.String name, java.lang.String description, PermissionType... requiredPermissions)Create a new slash command builder with the given name and description.static UserContextMenuBuilderUserContextMenu. withRequiredPermissions(java.lang.String name, PermissionType... requiredPermissions)Create a new user context menu command builder with the given name and description.Method parameters in org.javacord.api.interaction with type arguments of type PermissionType Modifier and Type Method Description TApplicationCommandBuilder. setDefaultEnabledForPermissions(java.util.EnumSet<PermissionType> requiredPermissions)Sets the default required permissions to be able to use this command.BApplicationCommandUpdater. setDefaultEnabledForPermissions(java.util.EnumSet<PermissionType> requiredPermissions)Sets the default required permissions to be able to use this command.static MessageContextMenuBuilderMessageContextMenu. withRequiredPermissions(java.lang.String name, java.util.EnumSet<PermissionType> requiredPermissions)Create a new message context menu command builder with the given name and description.static SlashCommandBuilderSlashCommand. withRequiredPermissions(java.lang.String name, java.lang.String description, java.util.EnumSet<PermissionType> requiredPermissions)Create a new slash command builder with the given name and description.static SlashCommandBuilderSlashCommand. withRequiredPermissions(java.lang.String name, java.lang.String description, java.util.List<SlashCommandOption> options, java.util.EnumSet<PermissionType> requiredPermissions)Create a new slash command builder with the given name, description and options.static UserContextMenuBuilderUserContextMenu. withRequiredPermissions(java.lang.String name, java.util.EnumSet<PermissionType> requiredPermissions)Create a new user context menu command builder with the given name and description. -
Uses of PermissionType in org.javacord.api.interaction.internal
Method parameters in org.javacord.api.interaction.internal with type arguments of type PermissionType Modifier and Type Method Description voidApplicationCommandBuilderDelegate. setDefaultEnabledForPermissions(java.util.EnumSet<PermissionType> requiredPermissions)Sets the default required permissions for this command.voidApplicationCommandUpdaterDelegate. setDefaultEnabledForPermissions(java.util.EnumSet<PermissionType> requiredPermissions)Sets the default required permissions for this command.
-