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.
- addMessageListener(MessageListener) - Method in class io.github.unknowncoder56.javaslc.Bot
-
Adds a
MessageListenerto the bot. - addMessageListener(MessageListener) - Method in class io.github.unknowncoder56.javaslc.BotBuilder
-
Adds a message 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 property 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. - CommandContext - Class in io.github.unknowncoder56.javaslc
-
A class to create a context object which contains details about the command like message content, owner (author), server ID,
Botinstance, command name and command arguments. - CommandContext(JsonObject, long, Bot, String) - Constructor for class io.github.unknowncoder56.javaslc.CommandContext
-
Constructor to create an instance of the class for a command without arguments.
- CommandContext(JsonObject, long, Bot, String, String[]) - Constructor for class io.github.unknowncoder56.javaslc.CommandContext
-
Constructor to create an instance of the class for a command with arguments.
- 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
-
The
ErrorListenerfor the instance. - 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.CommandContext
-
Gets the array of the arguments supplied with the command.
- getBot() - Method in class io.github.unknowncoder56.javaslc.MessageContext
-
Gets the
Botwhich received the message. - getBotUserId() - Method in class io.github.unknowncoder56.javaslc.Bot
-
Gets the user ID of the bot.
- getCommand() - Method in class io.github.unknowncoder56.javaslc.CommandContext
-
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.
- getKeyString() - Method in enum class io.github.unknowncoder56.javaslc.Bot.ChangeKey
-
Gets the key string of the enum value.
- getLabelJsonObject() - Method in class io.github.unknowncoder56.javaslc.User
-
Gets the label
JsonObjectof the user. - getMessageListeners() - Method in class io.github.unknowncoder56.javaslc.Bot
-
Gets the list of
MessageListeners of the bot. - 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
- isBot() - Method in class io.github.unknowncoder56.javaslc.User
-
Gets whether the user is a bot.
J
- join(long) - Method in class io.github.unknowncoder56.javaslc.Bot
-
This method joins a server if not already joined by the bot.
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 and
Botinstance. - MessageContext(JsonObject, long, Bot) - Constructor for class io.github.unknowncoder56.javaslc.MessageContext
-
Constructor to create an instance of the class for a message.
- MessageListener - Interface in io.github.unknowncoder56.javaslc
-
An interface to implement the method for receiving message events.
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
-
The key to change the nickname of the bot.
O
- onCommand(CommandContext) - 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.
- onMessage(MessageContext) - Method in interface io.github.unknowncoder56.javaslc.MessageListener
-
Method to implement for receiving message 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
-
The key to change the profile image of the bot.
R
S
- send(String) - Method in class io.github.unknowncoder56.javaslc.MessageContext
-
This method sends a message to a server directly from where the message originated.
- send(String, long) - Method in class io.github.unknowncoder56.javaslc.Bot
-
This method sends a message to a server if the bot is in it.
- 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
-
The user ID of the 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