Uses of Interface
org.javacord.api.DiscordApi
-
-
Uses of DiscordApi in org.javacord.api
Methods in org.javacord.api that return types with arguments of type DiscordApi Modifier and Type Method Description CompletableFuture<DiscordApi>DiscordApiBuilder. login()Login to the account with the given token.Collection<CompletableFuture<DiscordApi>>DiscordApiBuilder. loginAllShards()Login all shards to the account with the given token.Collection<CompletableFuture<DiscordApi>>DiscordApiBuilder. loginShards(int... shards)Login given shards to the account with the given token.Collection<CompletableFuture<DiscordApi>>DiscordApiBuilder. loginShards(IntPredicate shardsCondition)Login shards adhering to the given predicate to the account with the given token.Constructors in org.javacord.api with parameters of type DiscordApi Constructor Description AccountUpdater(DiscordApi api)Creates a new account updater. -
Uses of DiscordApi in org.javacord.api.entity
Methods in org.javacord.api.entity that return DiscordApi Modifier and Type Method Description DiscordApiDiscordEntity. getApi()Gets the discord api instance. -
Uses of DiscordApi in org.javacord.api.entity.auditlog
Methods in org.javacord.api.entity.auditlog that return DiscordApi Modifier and Type Method Description DiscordApiAuditLog. getApi()Gets the discord api instance. -
Uses of DiscordApi in org.javacord.api.entity.message
Methods in org.javacord.api.entity.message with parameters of type DiscordApi Modifier and Type Method Description static CompletableFuture<Void>Message. addReaction(DiscordApi api, long channelId, long messageId, String unicodeEmoji)Adds a unicode reaction to the message.static CompletableFuture<Void>Message. addReaction(DiscordApi api, long channelId, long messageId, Emoji emoji)Adds a reaction to the message.static CompletableFuture<Void>Message. addReaction(DiscordApi api, String channelId, String messageId, String unicodeEmoji)Adds a unicode reaction to the message.static CompletableFuture<Void>Message. addReaction(DiscordApi api, String channelId, String messageId, Emoji emoji)Adds a reaction to the message.static CompletableFuture<Void>Message. delete(DiscordApi api, long channelId, long messageId)Deletes the message.static CompletableFuture<Void>Message. delete(DiscordApi api, long channelId, long... messageIds)Deletes multiple messages at once.static CompletableFuture<Void>Message. delete(DiscordApi api, long channelId, long messageId, String reason)Deletes the message.static CompletableFuture<Void>Message. delete(DiscordApi api, Iterable<Message> messages)Deletes multiple messages at once.static CompletableFuture<Void>Message. delete(DiscordApi api, String channelId, String messageId)Deletes the message.static CompletableFuture<Void>Message. delete(DiscordApi api, String channelId, String... messageIds)Deletes multiple messages at once.static CompletableFuture<Void>Message. delete(DiscordApi api, String channelId, String messageId, String reason)Deletes the message.static CompletableFuture<Void>Message. delete(DiscordApi api, Message... messages)Deletes multiple messages at once.static CompletableFuture<Void>Message. edit(DiscordApi api, long channelId, long messageId, String content)Updates the content of the message.static CompletableFuture<Void>Message. edit(DiscordApi api, long channelId, long messageId, String content, boolean updateContent, EmbedBuilder embed, boolean updateEmbed)Updates the content and the embed of the message.static CompletableFuture<Void>Message. edit(DiscordApi api, long channelId, long messageId, String content, EmbedBuilder embed)Updates the content and the embed of the message.static CompletableFuture<Void>Message. edit(DiscordApi api, long channelId, long messageId, EmbedBuilder embed)Updates the embed of the message.static CompletableFuture<Void>Message. edit(DiscordApi api, String channelId, String messageId, String content)Updates the content of the message.static CompletableFuture<Void>Message. edit(DiscordApi api, String channelId, String messageId, String content, boolean updateContent, EmbedBuilder embed, boolean updateEmbed)Updates the content and the embed of the message.static CompletableFuture<Void>Message. edit(DiscordApi api, String channelId, String messageId, String content, EmbedBuilder embed)Updates the content and the embed of the message.static CompletableFuture<Void>Message. edit(DiscordApi api, String channelId, String messageId, EmbedBuilder embed)Updates the embed of the message.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.static CompletableFuture<Void>Message. pin(DiscordApi api, long channelId, long messageId)Pins this message.static CompletableFuture<Void>Message. pin(DiscordApi api, String channelId, String messageId)Pins this message.static CompletableFuture<Void>Message. removeAllReactions(DiscordApi api, long channelId, long messageId)Deletes all reactions on this message.static CompletableFuture<Void>Message. removeAllReactions(DiscordApi api, String channelId, String messageId)Deletes all reactions on this message.static CompletableFuture<Void>Message. removeContent(DiscordApi api, long channelId, long messageId)Removes the content of the message.static CompletableFuture<Void>Message. removeContent(DiscordApi api, String channelId, String messageId)Removes the content of the message.static CompletableFuture<Void>Message. removeContentAndEmbed(DiscordApi api, long channelId, long messageId)Removes the content and embed of the message.static CompletableFuture<Void>Message. removeContentAndEmbed(DiscordApi api, String channelId, String messageId)Removes the content and embed of the message.static CompletableFuture<Void>Message. removeEmbed(DiscordApi api, long channelId, long messageId)Removes the embed of the message.static CompletableFuture<Void>Message. removeEmbed(DiscordApi api, String channelId, String messageId)Removes the embed of the message.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.static CompletableFuture<Void>Message. unpin(DiscordApi api, long channelId, long messageId)Unpins this message.static CompletableFuture<Void>Message. unpin(DiscordApi api, String channelId, String messageId)Unpins this message. -
Uses of DiscordApi in org.javacord.api.entity.server
Constructors in org.javacord.api.entity.server with parameters of type DiscordApi Constructor Description ServerBuilder(DiscordApi api)Creates a new server builder. -
Uses of DiscordApi in org.javacord.api.event
Methods in org.javacord.api.event that return DiscordApi Modifier and Type Method Description DiscordApiEvent. getApi()Gets the api instance of the event. -
Uses of DiscordApi in org.javacord.api.internal
Methods in org.javacord.api.internal that return types with arguments of type DiscordApi Modifier and Type Method Description CompletableFuture<DiscordApi>DiscordApiBuilderDelegate. login()Logs the bot in.Collection<CompletableFuture<DiscordApi>>DiscordApiBuilderDelegate. loginShards(int... shards)Login given shards to the account with the given token. -
Uses of DiscordApi in org.javacord.api.listener.message
Methods in org.javacord.api.listener.message with parameters of type DiscordApi Modifier and Type Method Description static <T extends MessageAttachableListener & ObjectAttachableListener>
Collection<ListenerManager<T>>MessageAttachableListenerManager. addMessageAttachableListener(DiscordApi api, long messageId, T listener)Adds a listener that implements one or moreMessageAttachableListeners to the message with the given id.static <T extends MessageAttachableListener & ObjectAttachableListener>
Collection<ListenerManager<T>>MessageAttachableListenerManager. addMessageAttachableListener(DiscordApi api, String messageId, T listener)Adds a listener that implements one or moreMessageAttachableListeners to the message with the given id.static ListenerManager<MessageDeleteListener>MessageAttachableListenerManager. addMessageDeleteListener(DiscordApi api, long messageId, MessageDeleteListener listener)Adds aMessageDeleteListener.static ListenerManager<MessageEditListener>MessageAttachableListenerManager. addMessageEditListener(DiscordApi api, long messageId, MessageEditListener listener)Adds aMessageEditListener.static ListenerManager<ReactionAddListener>MessageAttachableListenerManager. addReactionAddListener(DiscordApi api, long messageId, ReactionAddListener listener)Adds aReactionAddListener.static ListenerManager<ReactionRemoveAllListener>MessageAttachableListenerManager. addReactionRemoveAllListener(DiscordApi api, long messageId, ReactionRemoveAllListener listener)Adds aReactionRemoveAllListener.static ListenerManager<ReactionRemoveListener>MessageAttachableListenerManager. addReactionRemoveListener(DiscordApi api, long messageId, ReactionRemoveListener listener)Adds aReactionRemoveListener.static <T extends MessageAttachableListener & ObjectAttachableListener>
Map<T,List<Class<T>>>MessageAttachableListenerManager. getMessageAttachableListeners(DiscordApi api, long messageId)Gets a map with all registered listeners that implement one or moreMessageAttachableListeners and their assigned listener classes they listen to for the message with the given id.static <T extends MessageAttachableListener & ObjectAttachableListener>
Map<T,List<Class<T>>>MessageAttachableListenerManager. getMessageAttachableListeners(DiscordApi api, String messageId)Gets a map with all registered listeners that implement one or moreMessageAttachableListeners and their assigned listener classes they listen to for the message with the given id.static List<MessageDeleteListener>MessageAttachableListenerManager. getMessageDeleteListeners(DiscordApi api, long messageId)Gets a list with all registeredMessageDeleteListeners of a specific message.static List<MessageDeleteListener>MessageAttachableListenerManager. getMessageDeleteListeners(DiscordApi api, String messageId)Gets a list with all registeredMessageDeleteListeners of a specific message.static List<MessageEditListener>MessageAttachableListenerManager. getMessageEditListeners(DiscordApi api, long messageId)Gets a list with all registeredMessageEditListeners of a specific message.static List<MessageEditListener>MessageAttachableListenerManager. getMessageEditListeners(DiscordApi api, String messageId)Gets a list with all registeredMessageEditListeners of a specific message.static List<ReactionAddListener>MessageAttachableListenerManager. getReactionAddListeners(DiscordApi api, long messageId)Gets a list with all registeredReactionAddListeners of a specific message.static List<ReactionAddListener>MessageAttachableListenerManager. getReactionAddListeners(DiscordApi api, String messageId)Gets a list with all registeredReactionAddListeners of a specific message.static List<ReactionRemoveAllListener>MessageAttachableListenerManager. getReactionRemoveAllListeners(DiscordApi api, long messageId)Gets a list with all registeredReactionRemoveAllListeners of a specific message.static List<ReactionRemoveAllListener>MessageAttachableListenerManager. getReactionRemoveAllListeners(DiscordApi api, String messageId)Gets a list with all registeredReactionRemoveAllListeners of a specific message.static List<ReactionRemoveListener>MessageAttachableListenerManager. getReactionRemoveListeners(DiscordApi api, long messageId)Gets a list with all registeredReactionRemoveListeners of a specific message.static List<ReactionRemoveListener>MessageAttachableListenerManager. getReactionRemoveListeners(DiscordApi api, String messageId)Gets a list with all registeredReactionRemoveListeners of a specific message.static <T extends MessageAttachableListener & ObjectAttachableListener>
voidMessageAttachableListenerManager. removeListener(DiscordApi api, long messageId, Class<T> listenerClass, T listener)Removes aMessageAttachableListenerfrom the message with the given id.static <T extends MessageAttachableListener & ObjectAttachableListener>
voidMessageAttachableListenerManager. removeListener(DiscordApi api, String messageId, Class<T> listenerClass, T listener)Removes aMessageAttachableListenerfrom the message with the given id.static <T extends MessageAttachableListener & ObjectAttachableListener>
voidMessageAttachableListenerManager. removeMessageAttachableListener(DiscordApi api, long messageId, T listener)Removes a listener that implements one or moreMessageAttachableListeners from the message with the given id.static <T extends MessageAttachableListener & ObjectAttachableListener>
voidMessageAttachableListenerManager. removeMessageAttachableListener(DiscordApi api, String messageId, T listener)Removes a listener that implements one or moreMessageAttachableListeners from the message with the given id. -
Uses of DiscordApi in org.javacord.api.util.internal
Methods in org.javacord.api.util.internal with parameters of type DiscordApi Modifier and Type Method Description static AccountUpdaterDelegateDelegateFactory. createAccountUpdaterDelegate(DiscordApi api)Creates a new account updater delegate.AccountUpdaterDelegateDelegateFactoryDelegate. createAccountUpdaterDelegate(DiscordApi api)Creates a new account updater delegate.static ServerBuilderDelegateDelegateFactory. createServerBuilderDelegate(DiscordApi api)Creates a new server builder delegate.ServerBuilderDelegateDelegateFactoryDelegate. createServerBuilderDelegate(DiscordApi api)Creates a new server builder delegate. -
Uses of DiscordApi in org.javacord.api.util.rest
Methods in org.javacord.api.util.rest that return DiscordApi Modifier and Type Method Description DiscordApiRestRequestInformation. getApi()Gets the discord api instance which created the request.DiscordApiRestRequestResponseInformation. getApi()Gets the discord api instance which created the request.
-