Index
All Classes and Interfaces|All Packages
A
- addCommandListener(CommandListener) - Method in class io.github.unknowncoder56.javaslc.Bot
-
Adds a
CommandListenerto the bot. - addCommandListener(CommandListener) - Method in class io.github.unknowncoder56.javaslc.BotBuilder
-
Adds a command listener.
B
- Bot - Class in io.github.unknowncoder56.javaslc
-
The main class of the library containing all important methods, like to run the bot.
- Bot.ChangeKey - Enum Class in io.github.unknowncoder56.javaslc
-
The enum containing all possible change keys.
- BotBuilder - Class in io.github.unknowncoder56.javaslc
-
A builder class to build a
Botinstance. - build() - Method in class io.github.unknowncoder56.javaslc.BotBuilder
-
Builds the bot and returns a
Botinstance constructed with the specified values.
C
- change(Bot.ChangeKey, String) - Method in class io.github.unknowncoder56.javaslc.Bot
-
This method changes a bot property defined in the
Bot.ChangeKeyenum. - CommandListener - Interface in io.github.unknowncoder56.javaslc
-
An interface to implement the method for receiving command (messages sent with the currently set bot prefix) events.
E
- errorListener - Variable in class io.github.unknowncoder56.javaslc.User
- ErrorListener - Interface in io.github.unknowncoder56.javaslc
-
An interface to implement the method for receiving error events.
G
- getAccountCreationDate() - Method in class io.github.unknowncoder56.javaslc.User
-
Gets the account creation
LocalDateTimeof the user. - getArguments() - Method in class io.github.unknowncoder56.javaslc.MessageContext
-
Gets the array of the arguments supplied with the command.
- getBot() - Method in class io.github.unknowncoder56.javaslc.MessageContext
-
Gets the
Botwhich received the command. - getBotUserId() - Method in class io.github.unknowncoder56.javaslc.Bot
-
Gets the user ID of the bot.
- getCommand() - Method in class io.github.unknowncoder56.javaslc.MessageContext
-
Gets the command name of the command received.
- getCommandListeners() - Method in class io.github.unknowncoder56.javaslc.Bot
-
Gets the list of
CommandListeners of the bot. - getContent() - Method in class io.github.unknowncoder56.javaslc.MessageContext
-
Gets the message content.
- getErrorListener() - Method in class io.github.unknowncoder56.javaslc.User
-
Gets the
ErrorListenerof this instance. - getJoinedServerIds() - Method in class io.github.unknowncoder56.javaslc.User
-
Gets the array of server IDs of the servers joined by the user.
- getLabelJsonObject() - Method in class io.github.unknowncoder56.javaslc.User
-
Gets the label
JsonObjectof the user. - getNickname() - Method in class io.github.unknowncoder56.javaslc.User
-
Gets the nickname of the user.
- getOwner() - Method in class io.github.unknowncoder56.javaslc.MessageContext
-
Gets the message owner.
- getPrefix() - Method in class io.github.unknowncoder56.javaslc.Bot
-
Gets the prefix of the bot.
- getProfileImageUrl() - Method in class io.github.unknowncoder56.javaslc.User
-
Gets the profile image URL
Stringof the user. - getServerId() - Method in class io.github.unknowncoder56.javaslc.MessageContext
-
Gets the server ID of the server where the message was sent.
- getStartListener() - Method in class io.github.unknowncoder56.javaslc.Bot
-
Gets the
StartListenerof the bot. - getUserId() - Method in class io.github.unknowncoder56.javaslc.User
-
Gets the user ID of the user.
- getUsername() - Method in class io.github.unknowncoder56.javaslc.User
-
Gets the username of the user.
I
- io.github.unknowncoder56.javaslc - package io.github.unknowncoder56.javaslc
J
- join(long) - Method in class io.github.unknowncoder56.javaslc.Bot
-
This method joins a server.
M
- MessageContext - Class in io.github.unknowncoder56.javaslc
-
A class to create a context object which contains details about the message like message content, owner (author), server ID,
Botinstance, command name and command arguments. - MessageContext(JsonObject, long, Bot, String) - Constructor for class io.github.unknowncoder56.javaslc.MessageContext
-
Constructor to create an instance of the class for a command without arguments.
- MessageContext(JsonObject, long, Bot, String, String[]) - Constructor for class io.github.unknowncoder56.javaslc.MessageContext
-
Constructor to create an instance of the class for a command with arguments.
N
- newInstance() - Static method in class io.github.unknowncoder56.javaslc.BotBuilder
-
Returns a new
BotBuilderinstance. - NICKNAME - Enum constant in enum class io.github.unknowncoder56.javaslc.Bot.ChangeKey
O
- onCommand(MessageContext) - Method in interface io.github.unknowncoder56.javaslc.CommandListener
-
Method to implement for receiving command events.
- onError(Exception, String) - Method in interface io.github.unknowncoder56.javaslc.ErrorListener
-
Method to implement for receiving error events.
- onStart() - Method in interface io.github.unknowncoder56.javaslc.StartListener
-
Method to implement for receiving the bot start event.
P
- PROFILE_IMAGE - Enum constant in enum class io.github.unknowncoder56.javaslc.Bot.ChangeKey
R
S
- send(String) - Method in class io.github.unknowncoder56.javaslc.MessageContext
-
This method sends a message to a server directly from where the command originated.
- send(String, long) - Method in class io.github.unknowncoder56.javaslc.Bot
-
This method sends a message to a server.
- setBotUserId(long) - Method in class io.github.unknowncoder56.javaslc.BotBuilder
-
Sets the bot user ID.
- setErrorListener(ErrorListener) - Method in class io.github.unknowncoder56.javaslc.BotBuilder
-
Sets the error listener.
- setErrorListener(ErrorListener) - Method in class io.github.unknowncoder56.javaslc.User
-
Sets the
ErrorListenerof this instance. - setPrefix(String) - Method in class io.github.unknowncoder56.javaslc.Bot
-
Sets the prefix of the bot.
- setPrefix(String) - Method in class io.github.unknowncoder56.javaslc.BotBuilder
-
Sets the bot prefix.
- setStartListener(StartListener) - Method in class io.github.unknowncoder56.javaslc.Bot
-
Sets the
StartListenerof the bot. - setStartListener(StartListener) - Method in class io.github.unknowncoder56.javaslc.BotBuilder
-
Sets the start listener.
- setToken(String) - Method in class io.github.unknowncoder56.javaslc.BotBuilder
-
Sets the bot token.
- StartListener - Interface in io.github.unknowncoder56.javaslc
-
An interface to implement the method for receiving the bot start event.
U
- User - Class in io.github.unknowncoder56.javaslc
-
This class describes a user or bot.
- User(long, ErrorListener) - Constructor for class io.github.unknowncoder56.javaslc.User
-
Constructor to build a user.
- userId - Variable in class io.github.unknowncoder56.javaslc.User
V
- valueOf(String) - Static method in enum class io.github.unknowncoder56.javaslc.Bot.ChangeKey
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class io.github.unknowncoder56.javaslc.Bot.ChangeKey
-
Returns an array containing the constants of this enum class, in the order they are declared.
All Classes and Interfaces|All Packages