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 Optional<User>DiscordApi. getCachedUserByDiscriminatedName(String discriminatedName)Gets a user by its discriminated name like e.default Optional<User>DiscordApi. getCachedUserByDiscriminatedNameIgnoreCase(String discriminatedName)Gets a user by its discriminated name like e.Optional<User>DiscordApi. getCachedUserById(long id)Gets a cached user by its id.default Optional<User>DiscordApi. getCachedUserById(String id)Gets a cached user by its id.default Optional<User>DiscordApi. getCachedUserByNameAndDiscriminator(String name, String discriminator)Gets a user by its name and discriminator.default Optional<User>DiscordApi. getCachedUserByNameAndDiscriminatorIgnoreCase(String name, String discriminator)Gets a user by its name and discriminator.Collection<User>DiscordApi. getCachedUsers()Gets a collection with all currently cached users.default Collection<User>DiscordApi. getCachedUsersByDisplayName(String displayName, Server server)Gets a collection with all users with the given display name on the given server.default Collection<User>DiscordApi. getCachedUsersByDisplayNameIgnoreCase(String displayName, Server server)Gets a collection with all users with the given display name on the given server.default Collection<User>DiscordApi. getCachedUsersByName(String name)Gets a collection with all users with the given name.default Collection<User>DiscordApi. getCachedUsersByNameIgnoreCase(String name)Gets a collection with all users with the given name.default Collection<User>DiscordApi. getCachedUsersByNickname(String nickname, Server server)Gets a collection with all users with the given nickname on the given server.default Collection<User>DiscordApi. getCachedUsersByNicknameIgnoreCase(String nickname, Server server)Gets a collection with all users with the given nickname on the given server.default CompletableFuture<User>DiscordApi. getOwner()Gets the owner of the application.CompletableFuture<User>DiscordApi. getUserById(long id)Gets a user by its id.default CompletableFuture<User>DiscordApi. getUserById(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 CompletableFuture<User>ApplicationInfo. getOwner()Gets the owner of the application. -
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 CompletableFuture<User>AuditLogEntryTarget. asUser()Gets the target as user.Collection<User>AuditLog. getInvolvedUsers()Gets a collection with all users, which can be found in this audit log.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 User Modifier and Type Method Description UserPrivateChannel. getRecipient()Gets the recipient of the private channel.Methods in org.javacord.api.entity.channel that return types with arguments of type User Modifier and Type Method Description Collection<User>ServerVoiceChannel. getConnectedUsers()Gets the users that are connected to this server voice channel.Collection<User>GroupChannel. getMembers()Gets the members of the group channel.Map<User,Permissions>ServerChannel. getOverwrittenUserPermissions()Gets the overwritten permissions for users in this channel.Methods in org.javacord.api.entity.channel with parameters of type User Modifier and Type Method Description 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 booleanVoiceChannel. canConnect(User user)Checks if the given user can connect to the voice channel.default booleanServerChannel. canCreateInstantInvite(User user)Checks if the given user can create an instant invite to this 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 booleanVoiceChannel. canMuteUsers(User user)Checks if the given user can mute other 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 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 booleanTextChannel. canWrite(User user)Checks if the given user can send messages in this channel.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.PermissionsServerChannel. getEffectiveOverwrittenPermissions(User user)Gets the effective overwritten permissions of a user.default PermissionsServerChannel. getEffectivePermissions(User user)Gets the effective permissions of a user in this channel.default List<ServerChannel>ChannelCategory. getVisibleChannels(User user)Gets a sorted (by position) list with all channels in this category the given user can see.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.default booleanServerVoiceChannel. isConnected(User user)Checks whether the given user is connected to this channel.default booleanGroupChannel. isMember(User user)Checks if the user is a member of this group channel. -
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 CompletableFuture<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 default Optional<User>MessageAuthor. asUser()Gets the author as user.List<User>Message. getMentionedUsers()Gets a list with all users mentioned in this message.Optional<User>Message. getUserAuthor()Gets the user author of the message.default CompletableFuture<List<User>>Reaction. getUsers()Gets a list with all users who used this reaction.static CompletableFuture<List<User>>Reaction. getUsers(DiscordApi api, long channelId, long messageId, Emoji emoji)Gets a list with all users who used this reaction.static CompletableFuture<List<User>>Reaction. getUsers(DiscordApi api, String channelId, String messageId, Emoji emoji)Gets a list with all users who used this reaction.CompletableFuture<List<User>>UncachedMessageUtil. getUsersWhoReactedWithEmoji(long channelId, long messageId, Emoji emoji)Gets a list with all users who reacted with the given emoji.CompletableFuture<List<User>>UncachedMessageUtil. getUsersWhoReactedWithEmoji(String channelId, String messageId, Emoji emoji)Gets a list with 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.CompletableFuture<Void>Message. removeReactionByEmoji(User user, String unicodeEmoji)Removes a user from the list of reactors of a given unicode emoji reaction.default CompletableFuture<Void>Message. removeReactionByEmoji(User user, Emoji emoji)Removes a user from the list of reactors of a given emoji reaction.CompletableFuture<Void>Message. removeReactionsByEmoji(User user, String... unicodeEmojis)Removes a user from the list of reactors of the given unicode emoji reactions.default CompletableFuture<Void>Message. removeReactionsByEmoji(User user, Emoji... emojis)Removes a user from the list of reactors of the given emoji reactions.static CompletableFuture<Void>Reaction. removeUser(DiscordApi api, long channelId, long messageId, Emoji emoji, User user)Removes a user from the list of reactors.static CompletableFuture<Void>Reaction. removeUser(DiscordApi api, String channelId, String messageId, Emoji emoji, User user)Removes a user from the list of reactors.default CompletableFuture<Void>Reaction. removeUser(User user)Removes a user from the list of reactors.CompletableFuture<Void>UncachedMessageUtil. removeUserReactionByEmoji(long channelId, long messageId, Emoji emoji, User user)Removes the reaction of the given user.CompletableFuture<Void>UncachedMessageUtil. removeUserReactionByEmoji(String channelId, String messageId, Emoji emoji, User user)Removes the reaction of the given user.CompletableFuture<Message>MessageBuilder. send(User user)Sends the message. -
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 CompletableFuture<Message>MessageBuilderDelegate. send(User user)Sends the message. -
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 Collection<User>Role. getUsers()Gets a collection with all users who have this role.Methods in org.javacord.api.entity.permission with parameters of type User Modifier and Type Method Description default CompletableFuture<Void>Role. addUser(User user)Adds the role to the given user.default CompletableFuture<Void>Role. addUser(User user, String reason)Adds the role to the given user.default CompletableFuture<Void>Role. removeUser(User user)Removes the role from the given user.default CompletableFuture<Void>Role. removeUser(User user, 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 UserServer. getOwner()Gets the owner of the server.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 Optional<User>Server. getMemberByDiscriminatedName(String discriminatedName)Gets a member by its discriminated name like e.default Optional<User>Server. getMemberByDiscriminatedNameIgnoreCase(String discriminatedName)Gets a member by its discriminated name like e.Optional<User>Server. getMemberById(long id)Gets a member by its id.default Optional<User>Server. getMemberById(String id)Gets a member by its id.default Optional<User>Server. getMemberByNameAndDiscriminator(String name, String discriminator)Gets a member by its name and discriminator.default Optional<User>Server. getMemberByNameAndDiscriminatorIgnoreCase(String name, String discriminator)Gets a member by its name and discriminator.Collection<User>Server. getMembers()Gets a collection with all members of the server.default Collection<User>Server. getMembersByDisplayName(String displayName)Gets a collection with all members with the given display name on this server.default Collection<User>Server. getMembersByDisplayNameIgnoreCase(String displayName)Gets a collection with all members with the given display name on this server.default Collection<User>Server. getMembersByName(String name)Gets a collection with all members with the given name.default Collection<User>Server. getMembersByNameIgnoreCase(String name)Gets a collection with all members with the given name.default Collection<User>Server. getMembersByNickname(String nickname)Gets a collection with all members with the given nickname on this server.default Collection<User>Server. getMembersByNicknameIgnoreCase(String nickname)Gets a collection with all members with the given nickname on this server.Methods in org.javacord.api.entity.server with parameters of type User Modifier and Type Method Description ServerUpdaterServerUpdater. addRolesToUser(User user, Collection<Role> roles)Queues a collection of roles to be assigned to the user.default CompletableFuture<Void>Server. addRoleToUser(User user, Role role)Adds the given role to the given server member.CompletableFuture<Void>Server. addRoleToUser(User user, Role role, 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 CompletableFuture<Void>Server. banUser(User user)Bans the given user from the server.default CompletableFuture<Void>Server. banUser(User user, int deleteMessageDays)Bans the given user from the server.CompletableFuture<Void>Server. banUser(User user, int deleteMessageDays, 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. 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 CompletableFuture<Void>Server. deafenUser(User user)Deafens the given user on the server.default CompletableFuture<Void>Server. deafenUser(User user, String reason)Deafens the given user on the server.default Collection<PermissionType>Server. getAllowedPermissions(User user)Get the allowed permissions of a given user.default Optional<ServerVoiceChannel>Server. getConnectedVoiceChannel(User user)Gets the voice channel the given user is connected to on this server if any.default StringServer. getDisplayName(User user)Gets the display name of the user on this server.default Optional<Role>Server. getHighestRole(User user)Gets the highest role of the given user in this server.Optional<Instant>Server. getJoinedAtTimestamp(User user)Gets the timestamp of when a user joined the server.Optional<String>Server. getNickname(User user)Gets the nickname of a user.default PermissionsServer. getPermissions(User user)Gets the permissions of a user.default Optional<Color>Server. getRoleColor(User user)Gets the displayed color of a user based on his roles on this server.default List<Role>Server. getRoles(User user)Gets a sorted list (by position) with all roles of the user in the server.default Collection<PermissionType>Server. getUnsetPermissions(User user)Get the unset permissions of a given user.default 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 CompletableFuture<Void>Server. kickUser(User user)Kicks the given user from the server.CompletableFuture<Void>Server. kickUser(User user, String reason)Kicks the given user from the server.default CompletableFuture<Void>Server. moveUser(User user, ServerVoiceChannel channel)Moves the given user to the given channel on the server.default CompletableFuture<Void>Server. muteUser(User user)Mutes the given user on the server.default CompletableFuture<Void>Server. muteUser(User user, String reason)Mutes the given user on the server.ServerUpdaterServerUpdater. removeAllRolesFromUser(User user)Queues all roles to be removed from the user.default CompletableFuture<Void>Server. removeRoleFromUser(User user, Role role)Removes the given role from the given server member.CompletableFuture<Void>Server. removeRoleFromUser(User user, Role role, 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, Collection<Role> roles)Queues a collection of roles to be removed from the user.default CompletableFuture<Void>Server. resetNickname(User user)Removes the nickname of the given user.default CompletableFuture<Void>Server. resetNickname(User user, 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, String nickname)Queues a user's nickname to be updated.ServerUpdaterServerUpdater. setOwner(User owner)Queues the owner to be updated.ServerUpdaterServerUpdater. setVoiceChannel(User user, ServerVoiceChannel channel)Queues a moving a user to a different voice channel.default CompletableFuture<Void>Server. unbanUser(User user)Unbans the given user from the server.default CompletableFuture<Void>Server. unbanUser(User user, String reason)Unbans the given user from the server.default CompletableFuture<Void>Server. undeafenUser(User user)Undeafens the given user on the server.default CompletableFuture<Void>Server. undeafenUser(User user, String reason)Undeafens the given user on the server.default CompletableFuture<Void>Server. unmuteUser(User user)Unmutes the given user on the server.default CompletableFuture<Void>Server. unmuteUser(User user, String reason)Unmutes the given user on the server.default CompletableFuture<Void>Server. updateNickname(User user, String nickname)Changes the nickname of the given user.default CompletableFuture<Void>Server. updateNickname(User user, String nickname, String reason)Changes the nickname of the given user.default CompletableFuture<Void>Server. updateOwner(User owner)Updates the owner of the server.default CompletableFuture<Void>Server. updateRoles(User user, Collection<Role> roles)Updates the roles of a server member.default CompletableFuture<Void>Server. updateRoles(User user, Collection<Role> roles, 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, 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, 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, String nickname)Queues a user's nickname to be updated.voidServerUpdaterDelegate. setOwner(User owner)Queues the owner 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 User Modifier and Type Method Description UserRichInvite. getInviter()Gets the user who created the invite. -
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 Optional<User>User. getCurrentCachedInstance()default 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 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 Optional<User>ServerChannelChangeOverwrittenPermissionsEvent. getUser()Gets the user which permissions were changed. -
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 CompletableFuture<Void>MessageEvent. removeReactionByEmojiFromMessage(User user, String unicodeEmoji)Removes a user from the list of reactors of a given unicode emoji reaction from the message.CompletableFuture<Void>MessageEvent. removeReactionByEmojiFromMessage(User user, Emoji emoji)Removes a user from the list of reactors of a given emoji reaction from the message.CompletableFuture<Void>MessageEvent. removeReactionsByEmojiFromMessage(User user, String... unicodeEmojis)Removes a user from the list of reactors of the given unicode emoji reactions from the message.CompletableFuture<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 CompletableFuture<List<User>>SingleReactionEvent. getUsers()Gets a list with all users who used the reaction. -
Uses of User in org.javacord.api.event.server
Methods in org.javacord.api.event.server that return User Modifier and Type Method Description UserServerChangeOwnerEvent. getNewOwner()Gets the new owner of the server.UserServerChangeOwnerEvent. getOldOwner()Gets the old owner of the server. -
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.
-