Uses of Interface
org.javacord.api.entity.server.Server
-
-
Uses of Server in org.javacord.api
Methods in org.javacord.api that return types with arguments of type Server Modifier and Type Method Description default java.util.Optional<Server>DiscordApi. getServerById(long id)Gets a server by its id.default java.util.Optional<Server>DiscordApi. getServerById(java.lang.String id)Gets a server by its id.java.util.Set<Server>DiscordApi. getServers()Gets all servers the bot is in.default java.util.Set<Server>DiscordApi. getServersByName(java.lang.String name)Gets all servers with the given name.default java.util.Set<Server>DiscordApi. getServersByNameIgnoreCase(java.lang.String name)Gets all servers with the given name.Methods in org.javacord.api with parameters of type Server Modifier and Type Method Description default java.util.concurrent.CompletableFuture<java.util.Set<ApplicationCommand>>DiscordApi. bulkOverwriteServerApplicationCommands(Server server, java.util.Set<? extends ApplicationCommandBuilder<?,?,?>> applicationCommandBuilderList)Bulk overwrites the servers application commands.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. 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.java.util.concurrent.CompletableFuture<ApplicationCommand>DiscordApi. getServerApplicationCommandById(Server server, long applicationCommandId)Gets a server application command by its id.java.util.concurrent.CompletableFuture<java.util.Set<ServerApplicationCommandPermissions>>DiscordApi. getServerApplicationCommandPermissions(Server server)Gets all server application command permissions from the given server.java.util.concurrent.CompletableFuture<ServerApplicationCommandPermissions>DiscordApi. getServerApplicationCommandPermissionsById(Server server, long commandId)Gets a server application command permissions by it ID from the given server.java.util.concurrent.CompletableFuture<java.util.Set<ApplicationCommand>>DiscordApi. getServerApplicationCommands(Server server)Gets all application commands for the given server.java.util.concurrent.CompletableFuture<MessageContextMenu>DiscordApi. getServerMessageContextMenuById(Server server, long commandId)Gets a server message context menu by its id.java.util.concurrent.CompletableFuture<java.util.Set<MessageContextMenu>>DiscordApi. getServerMessageContextMenus(Server server)Gets all message context menus for the given server.java.util.concurrent.CompletableFuture<SlashCommand>DiscordApi. getServerSlashCommandById(Server server, long commandId)Gets a server slash command by its id.java.util.concurrent.CompletableFuture<java.util.Set<SlashCommand>>DiscordApi. getServerSlashCommands(Server server)Gets all slash commands for the given server.java.util.concurrent.CompletableFuture<UserContextMenu>DiscordApi. getServerUserContextMenuById(Server server, long commandId)Gets a server user context menu by its id.java.util.concurrent.CompletableFuture<java.util.Set<UserContextMenu>>DiscordApi. getServerUserContextMenus(Server server)Gets all user context menus for the given server.default java.lang.StringDiscordApi. makeMentionsReadable(java.lang.String content, Server server)Gets the readable content of the string, which replaces all mentions etc. -
Uses of Server in org.javacord.api.audio
Methods in org.javacord.api.audio that return Server Modifier and Type Method Description default ServerAudioConnection. getServer()Gets the server of the audio connection. -
Uses of Server in org.javacord.api.entity.auditlog
Methods in org.javacord.api.entity.auditlog that return Server Modifier and Type Method Description ServerAuditLog. getServer()Gets the server of the audit log.Methods in org.javacord.api.entity.auditlog that return types with arguments of type Server Modifier and Type Method Description default java.util.Optional<Server>AuditLogEntryTarget. asServer()Gets the target as server. -
Uses of Server in org.javacord.api.entity.channel
Methods in org.javacord.api.entity.channel that return Server Modifier and Type Method Description ServerServerChannel. getServer()Gets the server of the channel.ServerThreadMember. getServer()Gets the server related to this thread member.Constructors in org.javacord.api.entity.channel with parameters of type Server Constructor Description ChannelCategoryBuilder(Server server)Creates a new channel category builder.ServerForumChannelBuilder(Server server)Creates a new server forum channel builder.ServerTextChannelBuilder(Server server)Creates a new server text channel builder.ServerVoiceChannelBuilder(Server server)Creates a new server text channel builder. -
Uses of Server in org.javacord.api.entity.emoji
Methods in org.javacord.api.entity.emoji that return Server Modifier and Type Method Description ServerKnownCustomEmoji. getServer()Gets the server of the emoji.Constructors in org.javacord.api.entity.emoji with parameters of type Server Constructor Description CustomEmojiBuilder(Server server)Creates a new custom emoji builder. -
Uses of Server in org.javacord.api.entity.message
Methods in org.javacord.api.entity.message that return types with arguments of type Server Modifier and Type Method Description default java.util.Optional<Server>Message. getServer()Gets the server of the message.default java.util.Optional<Server>MessageReference. getServer()Gets the server of the message reference. -
Uses of Server in org.javacord.api.entity.permission
Methods in org.javacord.api.entity.permission that return Server Modifier and Type Method Description ServerRole. getServer()Gets the server of the role.Constructors in org.javacord.api.entity.permission with parameters of type Server Constructor Description RoleBuilder(Server server)Creates a new role role builder for the given server. -
Uses of Server in org.javacord.api.entity.server
Methods in org.javacord.api.entity.server that return Server Modifier and Type Method Description ServerBan. getServer()Gets the server of the ban.Methods in org.javacord.api.entity.server that return types with arguments of type Server Modifier and Type Method Description default java.util.Optional<Server>Server. getCurrentCachedInstance()Constructors in org.javacord.api.entity.server with parameters of type Server Constructor Description ServerUpdater(Server server)Creates a new server updater. -
Uses of Server in org.javacord.api.entity.server.invite
Methods in org.javacord.api.entity.server.invite that return types with arguments of type Server Modifier and Type Method Description java.util.Optional<Server>Invite. getServer()Gets the server of the invite. -
Uses of Server in org.javacord.api.entity.sticker
Methods in org.javacord.api.entity.sticker that return types with arguments of type Server Modifier and Type Method Description java.util.Optional<Server>Sticker. getServer()The server that owns this sticker.Methods in org.javacord.api.entity.sticker with parameters of type Server Modifier and Type Method Description static java.util.concurrent.CompletableFuture<Sticker>Sticker. create(Server server, java.lang.String name, java.lang.String tags, java.io.File file)Creates a new sticker with the given values.static java.util.concurrent.CompletableFuture<Sticker>Sticker. create(Server server, java.lang.String name, java.lang.String description, java.lang.String tags, java.io.File file)Creates a new sticker with the given values.static java.util.concurrent.CompletableFuture<Sticker>Sticker. create(Server server, java.lang.String name, java.lang.String description, java.lang.String tags, java.io.File file, java.lang.String reason)Creates a new sticker with the given values.Constructors in org.javacord.api.entity.sticker with parameters of type Server Constructor Description StickerBuilder(Server server)Creates a new sticker builder.StickerUpdater(Server server, long id)Creates a new instance of the sticker updater. -
Uses of Server in org.javacord.api.entity.user
Methods in org.javacord.api.entity.user that return types with arguments of type Server Modifier and Type Method Description java.util.Set<Server>User. getMutualServers()Gets all mutual servers with this user.Methods in org.javacord.api.entity.user with parameters of type Server Modifier and Type Method Description default java.util.concurrent.CompletableFuture<java.lang.Void>User. deafen(Server server)Deafens this user on the given server.default java.util.concurrent.CompletableFuture<java.lang.Void>User. deafen(Server server, java.lang.String reason)Deafens this user on the given server.default java.util.Optional<java.time.Instant>User. getActiveTimeout(Server server)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.Optional<ServerVoiceChannel>User. getConnectedVoiceChannel(Server server)Gets the voice channel this user is connected to on the given server if any.java.lang.StringUser. getDisplayName(Server server)Gets the display name of the user.IconUser. getEffectiveAvatar(Server server)Gets the user's effective avatar in the given server.IconUser. getEffectiveAvatar(Server server, int size)Gets the user's effective avatar in the given server at the given size.java.util.Optional<java.time.Instant>User. getJoinedAtTimestamp(Server server)Gets the timestamp of when the user joined the given server.java.util.Optional<java.lang.String>User. getNickname(Server server)Gets the nickname of the user in the given server.java.util.Optional<java.awt.Color>User. getRoleColor(Server server)Gets the displayed color of the user based on their roles in the given server.java.util.List<Role>User. getRoles(Server server)Gets a sorted list (by position) with all roles of the user in the given server.java.util.Optional<Icon>User. getServerAvatar(Server server)Gets the user's server-specific avatar in the given server.java.util.Optional<Icon>User. getServerAvatar(Server server, int size)Gets the user's server-specific avatar in the given server at the given image size.java.util.Optional<java.lang.String>User. getServerAvatarHash(Server server)Gets the member's server avatar hash.java.util.Optional<java.time.Instant>User. getServerBoostingSinceTimestamp(Server server)Gets the timestamp of when this member started boosting the server.java.util.Optional<java.time.Instant>User. getTimeout(Server server)Gets the timestamp of when the user's timeout will expire and the user will be able to communicate in the server again.default booleanUser. isDeafened(Server server)Gets the deafened state of the user in the given server.default booleanUser. isMuted(Server server)Gets the muted state of the user in the given server.booleanUser. isPending(Server server)Gets the pending state of the user in the given server.booleanUser. isSelfDeafened(Server server)Gets the self-deafened state of the user in the given server.booleanUser. isSelfMuted(Server server)Gets the self-muted state of the user in the given server.default java.util.concurrent.CompletableFuture<java.lang.Void>User. mute(Server server)Mutes this user on the given server.default java.util.concurrent.CompletableFuture<java.lang.Void>User. mute(Server server, java.lang.String reason)Mutes this user on the given server.default java.util.concurrent.CompletableFuture<java.lang.Void>User. removeTimeout(Server server)Removes a timeout of the user on the given server.default java.util.concurrent.CompletableFuture<java.lang.Void>User. removeTimeout(Server server, java.lang.String reason)Removes a timeout of the user on the given server.default java.util.concurrent.CompletableFuture<java.lang.Void>User. resetNickname(Server server)Removes the nickname of the user in the given server.default java.util.concurrent.CompletableFuture<java.lang.Void>User. resetNickname(Server server, java.lang.String reason)Removes the nickname of the user in the given server.default java.util.concurrent.CompletableFuture<java.lang.Void>User. timeout(Server server, java.time.Duration duration)Timeouts the user on the given server.default java.util.concurrent.CompletableFuture<java.lang.Void>User. timeout(Server server, java.time.Duration duration, java.lang.String reason)Timeouts the user on the given server.default java.util.concurrent.CompletableFuture<java.lang.Void>User. timeout(Server server, java.time.Instant timeout)Timeouts the user on the given server.default java.util.concurrent.CompletableFuture<java.lang.Void>User. timeout(Server server, java.time.Instant timeout, java.lang.String reason)Timeouts the user on the given server.default java.util.concurrent.CompletableFuture<java.lang.Void>User. undeafen(Server server)Undeafens this user on the given server.default java.util.concurrent.CompletableFuture<java.lang.Void>User. undeafen(Server server, java.lang.String reason)Undeafens this user on the given server.default java.util.concurrent.CompletableFuture<java.lang.Void>User. unmute(Server server)Unmutes this user on the given server.default java.util.concurrent.CompletableFuture<java.lang.Void>User. unmute(Server server, java.lang.String reason)Unmutes this user on the given server.default java.util.concurrent.CompletableFuture<java.lang.Void>User. updateNickname(Server server, java.lang.String nickname)Changes the nickname of the user in the given server.default java.util.concurrent.CompletableFuture<java.lang.Void>User. updateNickname(Server server, java.lang.String nickname, java.lang.String reason)Changes the nickname of the user in the given server. -
Uses of Server in org.javacord.api.entity.webhook
Methods in org.javacord.api.entity.webhook that return types with arguments of type Server Modifier and Type Method Description java.util.Optional<Server>Webhook. getServer()Gets the server of the webhook. -
Uses of Server in org.javacord.api.event.audio
Methods in org.javacord.api.event.audio that return Server Modifier and Type Method Description default ServerAudioSourceEvent. getServer()Gets the server of the event. -
Uses of Server in org.javacord.api.event.channel.server
Methods in org.javacord.api.event.channel.server that return Server Modifier and Type Method Description default ServerServerChannelEvent. getServer() -
Uses of Server in org.javacord.api.event.channel.thread
Methods in org.javacord.api.event.channel.thread that return Server Modifier and Type Method Description ServerThreadMembersUpdateEvent. getServer()The server to which this event belongs. -
Uses of Server in org.javacord.api.event.message
Methods in org.javacord.api.event.message that return types with arguments of type Server Modifier and Type Method Description java.util.Optional<Server>MessageEvent. getServer()Gets the server of the message. -
Uses of Server in org.javacord.api.event.server
Methods in org.javacord.api.event.server that return Server Modifier and Type Method Description ServerServerEvent. getServer()Gets the server of the event. -
Uses of Server in org.javacord.api.interaction
Methods in org.javacord.api.interaction that return Server Modifier and Type Method Description ServerApplicationCommandPermissions. getServer()Gets the server this command permissions belongs to.ServerServerApplicationCommandPermissions. getServer()Gets the server of this server application command permissions.Methods in org.javacord.api.interaction that return types with arguments of type Server Modifier and Type Method Description default java.util.Optional<Server>ApplicationCommandInteraction. getRegisteredCommandServer()Gets the server the command was registered on.java.util.Optional<Server>ApplicationCommand. getServer()Gets the server of this command if it is not global.java.util.Optional<Server>InteractionBase. getServer()Gets the server that this interaction was sent from.Methods in org.javacord.api.interaction with parameters of type Server Modifier and Type Method Description java.util.concurrent.CompletableFuture<R>ApplicationCommandBuilder. createForServer(Server server)Creates an application command for a specific server.default java.util.concurrent.CompletableFuture<java.lang.Void>ApplicationCommand. deleteForServer(Server server)Deprecated.UseApplicationCommand.delete()instead.java.util.concurrent.CompletableFuture<T>ApplicationCommandUpdater. updateForServer(Server server)Updates an application command on the given server. -
Uses of Server in org.javacord.api.interaction.internal
Methods in org.javacord.api.interaction.internal with parameters of type Server Modifier and Type Method Description default java.util.concurrent.CompletableFuture<T>ApplicationCommandUpdaterDelegate. updateForServer(Server server)Performs the queued update. -
Uses of Server in org.javacord.api.util.internal
Methods in org.javacord.api.util.internal with parameters of type Server Modifier and Type Method Description static ChannelCategoryBuilderDelegateDelegateFactory. createChannelCategoryBuilderDelegate(Server server)Creates a new channel category builder delegate.ChannelCategoryBuilderDelegateDelegateFactoryDelegate. createChannelCategoryBuilderDelegate(Server server)Creates a new channel category builder delegate.static CustomEmojiBuilderDelegateDelegateFactory. createCustomEmojiBuilderDelegate(Server server)Creates a new custom emoji builder delegate.CustomEmojiBuilderDelegateDelegateFactoryDelegate. createCustomEmojiBuilderDelegate(Server server)Creates a new custom emoji builder delegate.static RoleBuilderDelegateDelegateFactory. createRoleBuilderDelegate(Server server)Creates a new role builder delegate.RoleBuilderDelegateDelegateFactoryDelegate. createRoleBuilderDelegate(Server server)Creates a new role builder delegate.static ServerForumChannelBuilderDelegateDelegateFactory. createServerForumChannelBuilderDelegate(Server server)Creates a new server forum channel builder delegate.ServerForumChannelBuilderDelegateDelegateFactoryDelegate. createServerForumChannelBuilderDelegate(Server server)Creates a new server forum channel builder delegate.static ServerTextChannelBuilderDelegateDelegateFactory. createServerTextChannelBuilderDelegate(Server server)Creates a new server text channel builder delegate.ServerTextChannelBuilderDelegateDelegateFactoryDelegate. createServerTextChannelBuilderDelegate(Server server)Creates a new server text channel builder delegate.static ServerUpdaterDelegateDelegateFactory. createServerUpdaterDelegate(Server server)Creates a new server updater delegate.ServerUpdaterDelegateDelegateFactoryDelegate. createServerUpdaterDelegate(Server server)Creates a new server updater delegate.static ServerVoiceChannelBuilderDelegateDelegateFactory. createServerVoiceChannelBuilderDelegate(Server server)Creates a new server voice channel builder delegate.ServerVoiceChannelBuilderDelegateDelegateFactoryDelegate. createServerVoiceChannelBuilderDelegate(Server server)Creates a new server voice channel builder delegate.static StickerBuilderDelegateDelegateFactory. createStickerBuilderDelegate(Server server)Creates a new sticker builder delegate.StickerBuilderDelegateDelegateFactoryDelegate. createStickerBuilderDelegate(Server server)Creates a new sticker builder delegate.static StickerUpdaterDelegateDelegateFactory. createStickerUpdaterDelegate(Server server, long id)Creates a new sticker updater delegate.StickerUpdaterDelegateDelegateFactoryDelegate. createStickerUpdaterDelegate(Server server, long id)Creates a new sticker sticker updater delegate.
-