Uses of Interface
org.javacord.api.entity.permission.Role
-
-
Uses of Role in org.javacord.api
Methods in org.javacord.api that return types with arguments of type Role Modifier and Type Method Description default java.util.Optional<Role>DiscordApi. getRoleById(long id)Gets a role by its id.default java.util.Optional<Role>DiscordApi. getRoleById(java.lang.String id)Gets a role by its id.default java.util.Set<Role>DiscordApi. getRoles()Gets all roles the bot knows.default java.util.Set<Role>DiscordApi. getRolesByName(java.lang.String name)Gets all roles with the given name.default java.util.Set<Role>DiscordApi. getRolesByNameIgnoreCase(java.lang.String name)Gets all roles with the given name. -
Uses of Role in org.javacord.api.entity.auditlog
Methods in org.javacord.api.entity.auditlog that return types with arguments of type Role Modifier and Type Method Description default java.util.Optional<Role>AuditLogEntryTarget. asRole()Gets the target as role. -
Uses of Role in org.javacord.api.entity.emoji
Methods in org.javacord.api.entity.emoji that return types with arguments of type Role Modifier and Type Method Description java.util.Optional<java.util.Set<Role>>KnownCustomEmoji. getWhitelistedRoles()Gets all whitelisted roles.Methods in org.javacord.api.entity.emoji with parameters of type Role Modifier and Type Method Description CustomEmojiBuilderCustomEmojiBuilder. addRoleToWhitelist(Role role)Adds a role to the whitelist.CustomEmojiUpdaterCustomEmojiUpdater. addRoleToWhitelist(Role role)Queues a role to be added to the whitelist.CustomEmojiUpdaterCustomEmojiUpdater. removeRoleFromWhitelist(Role role)Queues a role to be removed from the whitelist.CustomEmojiBuilderCustomEmojiBuilder. setWhitelist(Role... roles)Sets the roles which should be whitelisted.CustomEmojiUpdaterCustomEmojiUpdater. setWhitelist(Role... roles)Sets the roles which should be whitelisted.default java.util.concurrent.CompletableFuture<java.lang.Void>KnownCustomEmoji. updateWhitelist(Role... roles)Updates the whitelist of the emoji.Method parameters in org.javacord.api.entity.emoji with type arguments of type Role Modifier and Type Method Description CustomEmojiBuilderCustomEmojiBuilder. setWhitelist(java.util.Collection<Role> roles)Sets the roles which should be whitelisted.CustomEmojiUpdaterCustomEmojiUpdater. setWhitelist(java.util.Collection<Role> roles)Sets the roles which should be whitelisted.default java.util.concurrent.CompletableFuture<java.lang.Void>KnownCustomEmoji. updateWhitelist(java.util.Collection<Role> roles)Updates the whitelist of the emoji. -
Uses of Role in org.javacord.api.entity.emoji.internal
Methods in org.javacord.api.entity.emoji.internal with parameters of type Role Modifier and Type Method Description voidCustomEmojiBuilderDelegate. addRoleToWhitelist(Role role)Adds a role to the whitelist.voidCustomEmojiUpdaterDelegate. addRoleToWhitelist(Role role)Queues a role to be added to the whitelist.voidCustomEmojiUpdaterDelegate. removeRoleFromWhitelist(Role role)Queues a role to be removed from the whitelist.voidCustomEmojiBuilderDelegate. setWhitelist(Role... roles)Sets the roles which should be whitelisted.voidCustomEmojiUpdaterDelegate. setWhitelist(Role... roles)Sets the roles which should be whitelisted.Method parameters in org.javacord.api.entity.emoji.internal with type arguments of type Role Modifier and Type Method Description voidCustomEmojiBuilderDelegate. setWhitelist(java.util.Collection<Role> roles)Sets the roles which should be whitelisted.voidCustomEmojiUpdaterDelegate. setWhitelist(java.util.Collection<Role> roles)Sets the roles which should be whitelisted. -
Uses of Role in org.javacord.api.entity.message
Methods in org.javacord.api.entity.message that return types with arguments of type Role Modifier and Type Method Description java.util.List<Role>Message. getMentionedRoles()Gets all roles mentioned in this message. -
Uses of Role in org.javacord.api.entity.permission
Methods in org.javacord.api.entity.permission that return types with arguments of type Role Modifier and Type Method Description java.util.concurrent.CompletableFuture<Role>RoleBuilder. create()Creates the role.default java.util.Optional<Role>Role. getCurrentCachedInstance()Constructors in org.javacord.api.entity.permission with parameters of type Role Constructor Description RoleUpdater(Role role)Creates a new role updater. -
Uses of Role in org.javacord.api.entity.permission.internal
Methods in org.javacord.api.entity.permission.internal that return types with arguments of type Role Modifier and Type Method Description java.util.concurrent.CompletableFuture<Role>RoleBuilderDelegate. create()Creates the role. -
Uses of Role in org.javacord.api.entity.server
Methods in org.javacord.api.entity.server that return Role Modifier and Type Method Description default RoleServer. getEveryoneRole()Gets the @everyone role.Methods in org.javacord.api.entity.server that return types with arguments of type Role Modifier and Type Method Description default java.util.Optional<Role>Server. getHighestRole(User user)Gets the highest role of the given user in this server.java.util.Optional<Role>Server. getRoleById(long id)Gets a role by its id.default java.util.Optional<Role>Server. getRoleById(java.lang.String id)Gets a role by its id.java.util.List<Role>Server. getRoles()Gets a sorted list (by position) with all roles of the server.java.util.List<Role>Server. getRoles(User user)Gets a sorted list (by position) with all roles of the user in the server.default java.util.List<Role>Server. getRolesByName(java.lang.String name)Gets a sorted list (by position) with all roles with the given name.default java.util.List<Role>Server. getRolesByNameIgnoreCase(java.lang.String name)Gets a sorted list (by position) with all roles with the given name.Methods in org.javacord.api.entity.server with parameters of type Role Modifier and Type Method Description default java.util.concurrent.CompletableFuture<java.lang.Void>Server. addRoleToUser(User user, Role role)Adds the given role to the given server member.java.util.concurrent.CompletableFuture<java.lang.Void>Server. addRoleToUser(User user, Role role, java.lang.String reason)Adds the given role to the given server member.ServerUpdaterServerUpdater. addRoleToUser(User user, Role role)Queues a role to be assigned to the user.default booleanServer. canManageRole(User user, Role target)Checks if the user can manage the target role.default java.util.concurrent.CompletableFuture<java.lang.Void>Server. removeRoleFromUser(User user, Role role)Removes the given role from the given server member.java.util.concurrent.CompletableFuture<java.lang.Void>Server. removeRoleFromUser(User user, Role role, java.lang.String reason)Removes the given role from the given server member.ServerUpdaterServerUpdater. removeRoleFromUser(User user, Role role)Queues a role to be removed from the user.Method parameters in org.javacord.api.entity.server with type arguments of type Role Modifier and Type Method Description ServerUpdaterServerUpdater. addRolesToUser(User user, java.util.Collection<Role> roles)Queues a collection of roles to be assigned to the user.ServerUpdaterServerUpdater. removeRolesFromUser(User user, java.util.Collection<Role> roles)Queues a collection of roles to be removed from the user.default java.util.concurrent.CompletableFuture<java.lang.Void>Server. reorderRoles(java.util.List<Role> roles)Reorders the roles of the server.java.util.concurrent.CompletableFuture<java.lang.Void>Server. reorderRoles(java.util.List<Role> roles, java.lang.String reason)Reorders the roles of the server.ServerUpdaterServerUpdater. reorderRoles(java.util.List<Role> roles)Sets the new order for the server's roles.default java.util.concurrent.CompletableFuture<java.lang.Void>Server. updateRoles(User user, java.util.Collection<Role> roles)Updates the roles of a server member.default java.util.concurrent.CompletableFuture<java.lang.Void>Server. updateRoles(User user, java.util.Collection<Role> roles, java.lang.String reason)Updates the roles of a server member. -
Uses of Role in org.javacord.api.entity.server.internal
Methods in org.javacord.api.entity.server.internal with parameters of type Role Modifier and Type Method Description voidServerUpdaterDelegate. addRoleToUser(User user, Role role)Queues a role to be assigned to the user.voidServerUpdaterDelegate. removeRoleFromUser(User user, Role role)Queues a role to be removed from the user.Method parameters in org.javacord.api.entity.server.internal with type arguments of type Role Modifier and Type Method Description voidServerUpdaterDelegate. addRolesToUser(User user, java.util.Collection<Role> roles)Queues a collection of roles to be assigned to the user.voidServerUpdaterDelegate. removeRolesFromUser(User user, java.util.Collection<Role> roles)Queues a collection of roles to be removed from the user.voidServerUpdaterDelegate. reorderRoles(java.util.List<Role> roles)Sets the new order for the server's roles. -
Uses of Role in org.javacord.api.entity.user
Methods in org.javacord.api.entity.user that return types with arguments of type Role Modifier and Type Method Description java.util.List<Role>User. getRoles(Server server)Gets a sorted list (by position) with all roles of the user in the given server.Methods in org.javacord.api.entity.user with parameters of type Role Modifier and Type Method Description default java.util.concurrent.CompletableFuture<java.lang.Void>User. addRole(Role role)Adds the given role to the user.default java.util.concurrent.CompletableFuture<java.lang.Void>User. addRole(Role role, java.lang.String reason)Adds the given role to the user.default booleanUser. canManageRole(Role role)Checks if the user can manage the target role.default java.util.concurrent.CompletableFuture<java.lang.Void>User. removeRole(Role role)Removes the given role from the user.default java.util.concurrent.CompletableFuture<java.lang.Void>User. removeRole(Role role, java.lang.String reason)Removes the given role from the user. -
Uses of Role in org.javacord.api.event.channel.server
Methods in org.javacord.api.event.channel.server that return types with arguments of type Role Modifier and Type Method Description java.util.Optional<Role>ServerChannelChangeOverwrittenPermissionsEvent. getRole()Gets the role which permissions were changed. -
Uses of Role in org.javacord.api.event.server.emoji
Methods in org.javacord.api.event.server.emoji that return types with arguments of type Role Modifier and Type Method Description java.util.Optional<java.util.Set<Role>>KnownCustomEmojiChangeWhitelistedRolesEvent. getNewWhitelistedRoles()Gets the new whitelisted roles.java.util.Optional<java.util.Set<Role>>KnownCustomEmojiChangeWhitelistedRolesEvent. getOldWhitelistedRoles()Gets the old whitelisted roles. -
Uses of Role in org.javacord.api.event.server.role
Methods in org.javacord.api.event.server.role that return Role Modifier and Type Method Description RoleRoleEvent. getRole()Gets the role of the event. -
Uses of Role in org.javacord.api.interaction
Methods in org.javacord.api.interaction that return types with arguments of type Role Modifier and Type Method Description default java.util.Optional<Role>SlashCommandInteractionOptionsProvider. getArgumentRoleValueByIndex(int index)Gets the role value of an argument at the specified index.default java.util.Optional<Role>SlashCommandInteractionOptionsProvider. getArgumentRoleValueByName(java.lang.String name)Gets the role value of an argument having the specified name.java.util.Optional<Role>ApplicationCommandPermissions. getRole()Returns the role that these permissions affect.java.util.Optional<Role>SlashCommandInteractionOption. getRoleValue()Gets the role value of this option.java.util.List<Role>SelectMenuInteraction. getSelectedRoles()Gets the selected roles. -
Uses of Role in org.javacord.api.util.internal
Methods in org.javacord.api.util.internal with parameters of type Role Modifier and Type Method Description static RoleUpdaterDelegateDelegateFactory. createRoleUpdaterDelegate(Role role)Creates a new role updater delegate.RoleUpdaterDelegateDelegateFactoryDelegate. createRoleUpdaterDelegate(Role role)Creates a new role updater delegate.
-