Uses of Interface
org.javacord.api.entity.user.User
-
-
Uses of User in org.javacord.api
Methods in org.javacord.api that return User Modifier and Type Method Description UserDiscordApi. getYourself()Gets a user of the connected account.Methods in org.javacord.api that return types with arguments of type User Modifier and Type Method Description default java.util.Optional<User>DiscordApi. getCachedUserByDiscriminatedName(java.lang.String discriminatedName)Gets a user by its discriminated name like e.g.default java.util.Optional<User>DiscordApi. getCachedUserByDiscriminatedNameIgnoreCase(java.lang.String discriminatedName)Gets a user by its discriminated name like e.g.java.util.Optional<User>DiscordApi. getCachedUserById(long id)Gets a cached user by its id.default java.util.Optional<User>DiscordApi. getCachedUserById(java.lang.String id)Gets a cached user by its id.default java.util.Optional<User>DiscordApi. getCachedUserByNameAndDiscriminator(java.lang.String name, java.lang.String discriminator)Gets a user by its name and discriminator.default java.util.Optional<User>DiscordApi. getCachedUserByNameAndDiscriminatorIgnoreCase(java.lang.String name, java.lang.String discriminator)Gets a user by its name and discriminator.java.util.Set<User>DiscordApi. getCachedUsers()Gets all currently cached users.default java.util.Set<User>DiscordApi. getCachedUsersByDisplayName(java.lang.String displayName, Server server)Gets all users with the given display name on the given server.default java.util.Set<User>DiscordApi. getCachedUsersByDisplayNameIgnoreCase(java.lang.String displayName, Server server)Gets all users with the given display name on the given server.default java.util.Set<User>DiscordApi. getCachedUsersByName(java.lang.String name)Gets all users with the given name.default java.util.Set<User>DiscordApi. getCachedUsersByNameIgnoreCase(java.lang.String name)Gets all users with the given name.default java.util.Set<User>DiscordApi. getCachedUsersByNickname(java.lang.String nickname, Server server)Gets all users with the given nickname on the given server.default java.util.Set<User>DiscordApi. getCachedUsersByNicknameIgnoreCase(java.lang.String nickname, Server server)Gets all users with the given nickname on the given server.default java.util.Optional<java.util.concurrent.CompletableFuture<User>>DiscordApi. getOwner()Gets the owner of the application.java.util.concurrent.CompletableFuture<User>DiscordApi. getUserById(long id)Gets a user by its id.default java.util.concurrent.CompletableFuture<User>DiscordApi. getUserById(java.lang.String id)Gets a user by its id. -
Uses of User in org.javacord.api.entity
Methods in org.javacord.api.entity that return types with arguments of type User Modifier and Type Method Description java.util.concurrent.CompletableFuture<User>ApplicationOwner. requestUser()Requests the owner as a User. -
Uses of User in org.javacord.api.entity.auditlog
Methods in org.javacord.api.entity.auditlog that return types with arguments of type User Modifier and Type Method Description default java.util.concurrent.CompletableFuture<User>AuditLogEntryTarget. asUser()Gets the target as user.java.util.Set<User>AuditLog. getInvolvedUsers()Gets all users, which can be found in this audit log.java.util.concurrent.CompletableFuture<User>AuditLogEntry. getUser()Gets the user who made the changes. -
Uses of User in org.javacord.api.entity.channel
Methods in org.javacord.api.entity.channel that return types with arguments of type User Modifier and Type Method Description default java.util.Optional<User>ThreadMember. getCachedUser()Gets the user from the cache.java.util.Set<User>ServerVoiceChannel. getConnectedUsers()Gets the users that are connected to this server voice channel.java.util.Optional<User>PrivateChannel. getRecipient()Gets the recipient of the private channel.default java.util.concurrent.CompletableFuture<User>ServerThreadChannel. requestOwner()Gets the creator of the thread.default java.util.concurrent.CompletableFuture<User>ThreadMember. requestUser()Requests a user from Discord with the given id.Methods in org.javacord.api.entity.channel with parameters of type User Modifier and Type Method Description default java.util.concurrent.CompletableFuture<java.lang.Void>ServerThreadChannel. addThreadMember(User user)Adds a member to this thread.default booleanTextChannel. canAddNewReactions(User user)Checks if the given user is allowed to add new reactions to messages in this channel.default booleanTextChannel. canAttachFiles(User user)Checks if the given user can attach files in this channel.default booleanServerVoiceChannel. canConnect(User user)Checks if the given user can connect to the voice channel.default booleanRegularServerChannel. canCreateInstantInvite(User user)Checks if the given user can create an instant invite to this channel.default booleanServerVoiceChannel. canDeafenUsers(User user)Checks if the given user can deafen users in this voice channel.default booleanTextChannel. canEmbedLinks(User user)Checks if the given user can use embed links in this channel.default booleanTextChannel. canManageMessages(User user)Checks if the given user can manage messages (delete or pin them or remove reactions of others) in this channel.default booleanTextChannel. canMentionEveryone(User user)Checks if the given user can mention everyone (@everyone) in this channel.default booleanServerVoiceChannel. canMoveUsers(User user)Checks if the given user can move users in this voice channel.default booleanServerVoiceChannel. canMuteUsers(User user)Checks if the given user can mute users in this voice channel.default booleanTextChannel. canReadMessageHistory(User user)Checks if the given user can read the message history of this channel.default booleanTextChannel. canRemoveReactionsOfOthers(User user)Checks if the given user can remove reactions of other users in this channel.default booleanChannel. canSee(User user)Checks if the given user can see this channel.default booleanChannelCategory. canSeeAll(User user)Checks if the given user can see all channels in this category.default booleanServerVoiceChannel. canSpeak(User user)Checks if the given user can speak in this voice channel.default booleanTextChannel. canUseExternalEmojis(User user)Checks if the given user can use external emojis in this channel.default booleanTextChannel. canUseTts(User user)Checks if the given user can use tts (text to speech) in this channel.default booleanServerVoiceChannel. canUseVideo(User user)Checks if the given user can use video in this voice channel.default booleanServerVoiceChannel. canUseVoiceActivation(User user)Checks if the given user can use voice activation in this voice channel.default booleanTextChannel. canWrite(User user)Checks if the given user can send messages in this channel.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.PermissionsRegularServerChannel. getEffectiveOverwrittenPermissions(User user)Gets the effective overwritten permissions of a user.default PermissionsRegularServerChannel. getEffectivePermissions(User user)Gets the effective permissions of a user in this channel.default java.util.List<ServerChannel>ChannelCategory. getVisibleChannels(User user)Gets a sorted (by position) list with all channels in this category the given user can see.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.default booleanServerVoiceChannel. isConnected(User user)Checks whether the given user is connected to this channel.default booleanServerVoiceChannel. isPrioritySpeaker(User user)Checks if the given user is a priority speaker in this voice channel.default java.util.concurrent.CompletableFuture<java.lang.Void>ServerThreadChannel. removeThreadMember(User user)Removes a member to this thread. -
Uses of User in org.javacord.api.entity.emoji
Methods in org.javacord.api.entity.emoji that return types with arguments of type User Modifier and Type Method Description java.util.concurrent.CompletableFuture<java.util.Optional<User>>KnownCustomEmoji. getCreator()Gets the creator of the emoji. -
Uses of User in org.javacord.api.entity.message
Methods in org.javacord.api.entity.message that return types with arguments of type User Modifier and Type Method Description java.util.Optional<User>MessageAuthor. asUser()Gets the author as user.java.util.List<User>Message. getMentionedUsers()Gets all users mentioned in this message.java.util.Optional<User>Message. getUserAuthor()Gets the user author of the message.default java.util.concurrent.CompletableFuture<java.util.Set<User>>Reaction. getUsers()Gets all users who used this reaction.static java.util.concurrent.CompletableFuture<java.util.Set<User>>Reaction. getUsers(DiscordApi api, long channelId, long messageId, Emoji emoji)Gets all users who used this reaction.static java.util.concurrent.CompletableFuture<java.util.Set<User>>Reaction. getUsers(DiscordApi api, java.lang.String channelId, java.lang.String messageId, Emoji emoji)Gets all users who used this reaction.java.util.concurrent.CompletableFuture<java.util.Set<User>>UncachedMessageUtil. getUsersWhoReactedWithEmoji(long channelId, long messageId, Emoji emoji)Gets all users who reacted with the given emoji.java.util.concurrent.CompletableFuture<java.util.Set<User>>UncachedMessageUtil. getUsersWhoReactedWithEmoji(java.lang.String channelId, java.lang.String messageId, Emoji emoji)Gets all users who reacted with the given emoji.Methods in org.javacord.api.entity.message with parameters of type User Modifier and Type Method Description default booleanMessage. canAddNewReactions(User user)Checks if the given user is allowed to add new reactions to the message.default booleanMessageAuthor. canBanUserFromServer(User userToBan)Checks if the author can ban the user from the server where the message was sent.default booleanMessage. canDelete(User user)Checks if the given user can delete this message.default booleanMessageAuthor. canKickUserFromServer(User userToKick)Checks if the author can kick the user from the server where the message was sent.java.util.concurrent.CompletableFuture<java.lang.Void>Message. removeReactionByEmoji(User user, java.lang.String unicodeEmoji)Removes a user from the list of reactors of a given unicode emoji reaction.default java.util.concurrent.CompletableFuture<java.lang.Void>Message. removeReactionByEmoji(User user, Emoji emoji)Removes a user from the list of reactors of a given emoji reaction.java.util.concurrent.CompletableFuture<java.lang.Void>Message. removeReactionsByEmoji(User user, java.lang.String... unicodeEmojis)Removes a user from the list of reactors of the given unicode emoji reactions.default java.util.concurrent.CompletableFuture<java.lang.Void>Message. removeReactionsByEmoji(User user, Emoji... emojis)Removes a user from the list of reactors of the given emoji reactions.default java.util.concurrent.CompletableFuture<java.lang.Void>Reaction. removeUser(User user)Removes a user from the list of reactors.java.util.concurrent.CompletableFuture<Message>MessageBuilder. send(User user)Sends the message.WebhookMessageBuilderWebhookMessageBuilder. setDisplayAuthor(User author)Sets the display avatar of the webhook. -
Uses of User in org.javacord.api.entity.message.embed
Methods in org.javacord.api.entity.message.embed with parameters of type User Modifier and Type Method Description EmbedBuilderEmbedBuilder. setAuthor(User author)Sets the author of the embed. -
Uses of User in org.javacord.api.entity.message.embed.internal
Methods in org.javacord.api.entity.message.embed.internal with parameters of type User Modifier and Type Method Description voidEmbedBuilderDelegate. setAuthor(User author)Sets the author of the embed. -
Uses of User in org.javacord.api.entity.message.internal
Methods in org.javacord.api.entity.message.internal with parameters of type User Modifier and Type Method Description java.util.concurrent.CompletableFuture<Message>MessageBuilderBaseDelegate. send(User user)Sends the message.default voidWebhookMessageBuilderDelegate. setDisplayAuthor(User author)Sets the display avatar of the webhook. -
Uses of User in org.javacord.api.entity.permission
Methods in org.javacord.api.entity.permission that return types with arguments of type User Modifier and Type Method Description java.util.Set<User>Role. getUsers()Gets all users who have this role.Methods in org.javacord.api.entity.permission with parameters of type User Modifier and Type Method Description default java.util.concurrent.CompletableFuture<java.lang.Void>Role. addUser(User user)Adds the role to the given user.default java.util.concurrent.CompletableFuture<java.lang.Void>Role. addUser(User user, java.lang.String reason)Adds the role to the given user.booleanRole. hasUser(User user)Checks whether the specified user has this role.default java.util.concurrent.CompletableFuture<java.lang.Void>Role. removeUser(User user)Removes the role from the given user.default java.util.concurrent.CompletableFuture<java.lang.Void>Role. removeUser(User user, java.lang.String reason)Removes the role from the given user. -
Uses of User in org.javacord.api.entity.server
Methods in org.javacord.api.entity.server that return User Modifier and Type Method Description UserBan. getUser()Gets the banned user.Methods in org.javacord.api.entity.server that return types with arguments of type User Modifier and Type Method Description default java.util.Optional<User>Server. getMemberByDiscriminatedName(java.lang.String discriminatedName)Gets a member by its discriminated name like e.g.default java.util.Optional<User>Server. getMemberByDiscriminatedNameIgnoreCase(java.lang.String discriminatedName)Gets a member by its discriminated name like e.g.java.util.Optional<User>Server. getMemberById(long id)Gets a member by its id.default java.util.Optional<User>Server. getMemberById(java.lang.String id)Gets a member by its id.default java.util.Optional<User>Server. getMemberByNameAndDiscriminator(java.lang.String name, java.lang.String discriminator)Gets a member by its name and discriminator.default java.util.Optional<User>Server. getMemberByNameAndDiscriminatorIgnoreCase(java.lang.String name, java.lang.String discriminator)Gets a member by its name and discriminator.java.util.Set<User>Server. getMembers()Gets all members of the server.default java.util.Set<User>Server. getMembersByDisplayName(java.lang.String displayName)Gets all members with the given display name on this server.default java.util.Set<User>Server. getMembersByDisplayNameIgnoreCase(java.lang.String displayName)Gets all members with the given display name on this server.default java.util.Set<User>Server. getMembersByName(java.lang.String name)Gets all members with the given name.default java.util.Set<User>Server. getMembersByNameIgnoreCase(java.lang.String name)Gets all members with the given name.default java.util.Set<User>Server. getMembersByNickname(java.lang.String nickname)Gets all members with the given nickname on this server.default java.util.Set<User>Server. getMembersByNicknameIgnoreCase(java.lang.String nickname)Gets all members with the given nickname on this server.java.util.Optional<User>Server. getOwner()Gets the owner of the server.java.util.concurrent.CompletableFuture<User>Server. requestMember(long userId)Requests a server member.default java.util.concurrent.CompletableFuture<User>Server. requestMember(User user)Requests a server member.default java.util.concurrent.CompletableFuture<User>Server. requestOwner()Gets the owner of the server.Methods in org.javacord.api.entity.server with parameters of type User 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.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 java.util.concurrent.CompletableFuture<java.lang.Void>Server. banUser(User user)Bans the given user from the server.default java.util.concurrent.CompletableFuture<java.lang.Void>Server. banUser(User user, long deleteMessageDuration, java.util.concurrent.TimeUnit unit)Bans the given user from the server.default java.util.concurrent.CompletableFuture<java.lang.Void>Server. banUser(User user, long deleteMessageDuration, java.util.concurrent.TimeUnit unit, java.lang.String reason)Bans the given user from the server.default java.util.concurrent.CompletableFuture<java.lang.Void>Server. banUser(User user, java.time.Duration duration)Bans the given user from the server.default java.util.concurrent.CompletableFuture<java.lang.Void>Server. banUser(User user, java.time.Duration duration, java.lang.String reason)Bans the given user from the server.default booleanServer. canBanUser(User user, User userToBan)Checks if the given user can ban the other user.default booleanServer. canBanUsers(User user)Checks if the given user can ban users from the server.default booleanServer. canChangeOwnNickname(User user)Checks if the given user can change its own nickname in the server.default booleanServer. canCreateChannels(User user)Checks if the given user can create new channels.default booleanServer. canDeafenMembers(User user)Checks if the given user can deafen members on the server.default booleanServer. canKickUser(User user, User userToKick)Checks if the given user can kick the other user.default booleanServer. canKickUsers(User user)Checks if the given user can kick users from the server.default booleanServer. canManage(User user)Checks if the given user can manage the server.default booleanServer. canManageEmojis(User user)Checks if the given user can manage emojis on the server.default booleanServer. canManageNicknames(User user)Checks if the given user can manage nicknames on the server.default booleanServer. canManageRole(User user, Role target)Checks if the user can manage the target role.default booleanServer. canManageRoles(User user)Checks if the given user can manage roles on the server.default booleanServer. canManageRolesOf(User user, User target)Checks if the user can manage the roles of the target user.default booleanServer. canMoveMembers(User user)Checks if the given user can move members on the server.default booleanServer. canMuteMembers(User user)Checks if the given user can mute members on the server.default booleanServer. canUseSlashCommands(User user)Checks if the given user can use slash commands on the server.default booleanServer. canViewAuditLog(User user)Checks if the given user can view the audit log of the server.default booleanServer. canYouBanUser(User userToBan)Checks if the user of the connected account can ban the user.default booleanServer. canYouKickUser(User userToKick)Checks if the user of the connected account can kick the user.default java.util.concurrent.CompletableFuture<java.lang.Void>Server. deafenUser(User user)Deafens the given user on the server.default java.util.concurrent.CompletableFuture<java.lang.Void>Server. deafenUser(User user, java.lang.String reason)Deafens the given user on the server.default java.util.Optional<java.time.Instant>Server. getActiveTimeout(User user)Gets the timestamp of when the user's timeout will expire and the user will be able to communicate in the server again.default java.util.Set<PermissionType>Server. getAllowedPermissions(User user)Get the allowed permissions of a given user.default java.util.Optional<ServerVoiceChannel>Server. getConnectedVoiceChannel(User user)Gets the voice channel the given user is connected to on this server if any.default java.lang.StringServer. getDisplayName(User user)Gets the display name of the user on this server.default java.util.Optional<Role>Server. getHighestRole(User user)Gets the highest role of the given user in this server.java.util.Optional<java.time.Instant>Server. getJoinedAtTimestamp(User user)Gets the timestamp of when a user joined the server.java.util.Optional<java.lang.String>Server. getNickname(User user)Gets the nickname of a user.default PermissionsServer. getPermissions(User user)Gets the permissions of a user.default java.util.Optional<java.awt.Color>Server. getRoleColor(User user)Gets the displayed color of a user based on his roles on this server.java.util.List<Role>Server. getRoles(User user)Gets a sorted list (by position) with all roles of the user in the server.java.util.Optional<java.time.Instant>Server. getServerBoostingSinceTimestamp(User user)Gets the timestamp of when this member started boosting the server.java.util.Optional<java.time.Instant>Server. getTimeout(User user)Gets the timestamp of when the user's timeout will expire and the user will be able to communicate in the server again.default java.util.Set<PermissionType>Server. getUnsetPermissions(User user)Get the unset permissions of a given user.java.util.Optional<Icon>Server. getUserServerAvatar(User user)Gets the user's server specific avatar.java.util.Optional<Icon>Server. getUserServerAvatar(User user, int size)Gets the user's server specific avatar in the given size.java.util.Optional<java.lang.String>Server. getUserServerAvatarHash(User user)Gets the user's server specific avatar hash.default java.util.List<ServerChannel>Server. getVisibleChannels(User user)Gets a sorted (by position) list with all channels of this server the given user can see.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.default booleanServer. isAdmin(User user)Checks if the given user is an administrator of the server.default booleanServer. isDeafened(User user)Gets the deafened state of the given user.booleanServer. isMember(User user)Checks if the given user is a member of this server.default booleanServer. isMuted(User user)Gets the muted state of the given user.default booleanServer. isOwner(User user)Checks if the given user is the owner of the server.default booleanServer. isSelfDeafened(User user)Gets the self-deafened state of the given user.default booleanServer. isSelfMuted(User user)Gets the self-muted state of the given user.default java.util.concurrent.CompletableFuture<java.lang.Void>Server. kickUser(User user)Kicks the given user from the server.java.util.concurrent.CompletableFuture<java.lang.Void>Server. kickUser(User user, java.lang.String reason)Kicks the given user from the server.default java.util.concurrent.CompletableFuture<java.lang.Void>Server. kickUserFromVoiceChannel(User user)Kicks the given user from any voice channel.default java.util.concurrent.CompletableFuture<java.lang.Void>Server. moveUser(User user, ServerVoiceChannel channel)Moves the given user to the given channel on the server.default java.util.concurrent.CompletableFuture<java.lang.Void>Server. muteUser(User user)Mutes the given user on the server.default java.util.concurrent.CompletableFuture<java.lang.Void>Server. muteUser(User user, java.lang.String reason)Mutes the given user on the server.ServerUpdaterServerUpdater. removeAllRolesFromUser(User user)Queues all roles to be removed from the user.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.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. removeUserTimeout(User user)Remove a timeout for the given user on this server.default java.util.concurrent.CompletableFuture<java.lang.Void>Server. removeUserTimeout(User user, java.lang.String reason)Remove a timeout for the given user on this server.ServerUpdaterServerUpdater. removeUserTimeout(User user)Queues a user's timeout to be updated.default java.util.concurrent.CompletableFuture<Ban>Server. requestBan(User user)Requests a ban object for the specified user.default java.util.concurrent.CompletableFuture<User>Server. requestMember(User user)Requests a server member.default java.util.concurrent.CompletableFuture<java.lang.Void>Server. resetNickname(User user)Removes the nickname of the given user.default java.util.concurrent.CompletableFuture<java.lang.Void>Server. resetNickname(User user, java.lang.String reason)Removes the nickname of the given user.ServerUpdaterServerUpdater. setDeafened(User user, boolean deafened)Queues a user's deafened state to be updated.ServerUpdaterServerUpdater. setMuted(User user, boolean muted)Queues a user's muted state to be updated.ServerUpdaterServerUpdater. setNickname(User user, java.lang.String nickname)Queues a user's nickname to be updated.ServerUpdaterServerUpdater. setOwner(User owner)Queues the owner to be updated.ServerUpdaterServerUpdater. setUserTimeout(User user, java.time.Duration duration)Queues a user's timeout to be updated.ServerUpdaterServerUpdater. setUserTimeout(User user, java.time.Instant timeout)Queues a user's timeout to be updated.ServerUpdaterServerUpdater. setVoiceChannel(User user, ServerVoiceChannel channel)Queues a moving a user to a different voice channel.default java.util.concurrent.CompletableFuture<java.lang.Void>Server. timeoutUser(User user, java.time.Duration duration)Timeout the given user on this server.default java.util.concurrent.CompletableFuture<java.lang.Void>Server. timeoutUser(User user, java.time.Duration duration, java.lang.String reason)Timeout the given user on this server.default java.util.concurrent.CompletableFuture<java.lang.Void>Server. timeoutUser(User user, java.time.Instant timeout)Timeout the given user on this server.default java.util.concurrent.CompletableFuture<java.lang.Void>Server. timeoutUser(User user, java.time.Instant timeout, java.lang.String reason)Timeout the given user on this server.default java.util.concurrent.CompletableFuture<java.lang.Void>Server. unbanUser(User user)Unbans the given user from the server.default java.util.concurrent.CompletableFuture<java.lang.Void>Server. unbanUser(User user, java.lang.String reason)Unbans the given user from the server.default java.util.concurrent.CompletableFuture<java.lang.Void>Server. undeafenUser(User user)Undeafens the given user on the server.default java.util.concurrent.CompletableFuture<java.lang.Void>Server. undeafenUser(User user, java.lang.String reason)Undeafens the given user on the server.default java.util.concurrent.CompletableFuture<java.lang.Void>Server. unmuteUser(User user)Unmutes the given user on the server.default java.util.concurrent.CompletableFuture<java.lang.Void>Server. unmuteUser(User user, java.lang.String reason)Unmutes the given user on the server.default java.util.concurrent.CompletableFuture<java.lang.Void>Server. updateNickname(User user, java.lang.String nickname)Changes the nickname of the given user.default java.util.concurrent.CompletableFuture<java.lang.Void>Server. updateNickname(User user, java.lang.String nickname, java.lang.String reason)Changes the nickname of the given user.default java.util.concurrent.CompletableFuture<java.lang.Void>Server. updateOwner(User owner)Updates the owner of the server.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 User in org.javacord.api.entity.server.internal
Methods in org.javacord.api.entity.server.internal with parameters of type User 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. addRoleToUser(User user, Role role)Queues a role to be assigned to the user.voidServerUpdaterDelegate. removeAllRolesFromUser(User user)Queues all roles to be removed from the user.voidServerUpdaterDelegate. removeRoleFromUser(User user, Role role)Queues a role to be removed from the user.voidServerUpdaterDelegate. removeRolesFromUser(User user, java.util.Collection<Role> roles)Queues a collection of roles to be removed from the user.voidServerUpdaterDelegate. setDeafened(User user, boolean deafened)Queues a user's deafened state to be updated.voidServerUpdaterDelegate. setMuted(User user, boolean muted)Queues a user's muted state to be updated.voidServerUpdaterDelegate. setNickname(User user, java.lang.String nickname)Queues a user's nickname to be updated.voidServerUpdaterDelegate. setOwner(User owner)Queues the owner to be updated.voidServerUpdaterDelegate. setUserTimeout(User user, java.time.Instant timeout)Queues a user's timeout to be updated.voidServerUpdaterDelegate. setVoiceChannel(User user, ServerVoiceChannel channel)Queues a moving a user to a different voice channel. -
Uses of User in org.javacord.api.entity.server.invite
Methods in org.javacord.api.entity.server.invite that return types with arguments of type User Modifier and Type Method Description java.util.Optional<User>Invite. getInviter()Gets the user who created the invite.java.util.Optional<User>Invite. getTargetUser()Gets the user which the invite was created for. -
Uses of User in org.javacord.api.entity.sticker
Methods in org.javacord.api.entity.sticker that return types with arguments of type User Modifier and Type Method Description java.util.Optional<User>Sticker. getUser()The user that uploaded the sticker on the server. -
Uses of User in org.javacord.api.entity.team
Methods in org.javacord.api.entity.team that return types with arguments of type User Modifier and Type Method Description default java.util.concurrent.CompletableFuture<User>Team. requestOwner()Requests the owner of the team.default java.util.concurrent.CompletableFuture<User>TeamMember. requestUser()Requests the member as user. -
Uses of User in org.javacord.api.entity.user
Methods in org.javacord.api.entity.user that return types with arguments of type User Modifier and Type Method Description default java.util.Optional<User>User. getCurrentCachedInstance()default java.util.concurrent.CompletableFuture<User>User. getLatestInstance() -
Uses of User in org.javacord.api.entity.webhook
Methods in org.javacord.api.entity.webhook that return types with arguments of type User Modifier and Type Method Description java.util.Optional<User>Webhook. getCreator()Gets the creator of the webhook. -
Uses of User in org.javacord.api.event.channel.server
Methods in org.javacord.api.event.channel.server that return types with arguments of type User Modifier and Type Method Description java.util.Optional<User>ServerChannelChangeOverwrittenPermissionsEvent. getUser()Gets the user which permissions were changed. -
Uses of User in org.javacord.api.event.channel.user
Methods in org.javacord.api.event.channel.user that return types with arguments of type User Modifier and Type Method Description default java.util.Optional<User>PrivateChannelEvent. getRecipient()Gets the recipient of the private channel of the event. -
Uses of User in org.javacord.api.event.message
Methods in org.javacord.api.event.message with parameters of type User Modifier and Type Method Description java.util.concurrent.CompletableFuture<java.lang.Void>MessageEvent. removeReactionByEmojiFromMessage(User user, java.lang.String unicodeEmoji)Removes a user from the list of reactors of a given unicode emoji reaction from the message.java.util.concurrent.CompletableFuture<java.lang.Void>MessageEvent. removeReactionByEmojiFromMessage(User user, Emoji emoji)Removes a user from the list of reactors of a given emoji reaction from the message.java.util.concurrent.CompletableFuture<java.lang.Void>MessageEvent. removeReactionsByEmojiFromMessage(User user, java.lang.String... unicodeEmojis)Removes a user from the list of reactors of the given unicode emoji reactions from the message.java.util.concurrent.CompletableFuture<java.lang.Void>MessageEvent. removeReactionsByEmojiFromMessage(User user, Emoji... emojis)Removes a user from the list of reactors of the given emoji reactions from the message. -
Uses of User in org.javacord.api.event.message.reaction
Methods in org.javacord.api.event.message.reaction that return types with arguments of type User Modifier and Type Method Description java.util.concurrent.CompletableFuture<java.util.Set<User>>SingleReactionEvent. getUsers()Gets all users who used the reaction. -
Uses of User in org.javacord.api.event.server
Methods in org.javacord.api.event.server that return types with arguments of type User Modifier and Type Method Description default java.util.Optional<User>ServerChangeOwnerEvent. getNewOwner()Gets the new owner of the server.default java.util.Optional<User>ServerChangeOwnerEvent. getOldOwner()Gets the old owner of the server. -
Uses of User in org.javacord.api.event.server.member
Methods in org.javacord.api.event.server.member that return types with arguments of type User Modifier and Type Method Description java.util.Set<User>ServerMembersChunkEvent. getMembers()Gets the users contained in this chunk. -
Uses of User in org.javacord.api.event.user
Methods in org.javacord.api.event.user that return User Modifier and Type Method Description UserUserEvent. getUser()Gets the user of the event.Methods in org.javacord.api.event.user that return types with arguments of type User Modifier and Type Method Description default java.util.Optional<User>OptionalUserEvent. getUser()Gets the user of the event.default java.util.concurrent.CompletableFuture<User>OptionalUserEvent. requestUser()Requests a user from Discord with the given id. -
Uses of User in org.javacord.api.interaction
Methods in org.javacord.api.interaction that return User Modifier and Type Method Description UserUserContextMenuInteraction. getTarget()Gets the target user.UserInteractionBase. getUser()Gets the invoking user.UserMessageInteraction. getUser()Gets the user who invoked the interaction.Methods in org.javacord.api.interaction that return types with arguments of type User Modifier and Type Method Description default java.util.Optional<User>SlashCommandInteractionOptionsProvider. getArgumentUserValueByIndex(int index)Gets the user value of an argument at the specified index.default java.util.Optional<User>SlashCommandInteractionOptionsProvider. getArgumentUserValueByName(java.lang.String name)Gets the user value of an argument having the specified name.java.util.List<User>SelectMenuInteraction. getSelectedUsers()Gets the selected users.java.util.Optional<User>ApplicationCommandPermissions. getUser()Returns the user that these permissions affect.java.util.Optional<User>SlashCommandInteractionOption. getUserValue()Gets the user value of this option.default java.util.Optional<java.util.concurrent.CompletableFuture<User>>SlashCommandInteractionOptionsProvider. requestArgumentUserValueByIndex(int index)Gets the user value of an argument at the specified index.default java.util.Optional<java.util.concurrent.CompletableFuture<User>>SlashCommandInteractionOptionsProvider. requestArgumentUserValueByName(java.lang.String name)Gets the user value of an argument having the specified name.java.util.Optional<java.util.concurrent.CompletableFuture<User>>SlashCommandInteractionOption. requestUserValue()Gets the user value of this option.
-