A C D E F G H I J M N O P Q R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- actionTook() - Method in class com.mrivanplays.jdcf.args.RestArgumentAction
-
Returns whenever an action was took on the rest argument or not.
- addMessageEventSubscription(Consumer<MessageEventSubscriber>) - Method in class com.mrivanplays.jdcf.CommandManager
-
Adds a
MessageEventSubscriber
, called if no commands occur while handling events. - ARGUMENT_NOT_TYPED - com.mrivanplays.jdcf.args.FailReason
-
The argument wasn't typed in the command.
- ARGUMENT_PARSED_NOT_TYPE - com.mrivanplays.jdcf.args.FailReason
-
The argument parsed is not the type we want it to be
- ARGUMENT_PARSED_NULL - com.mrivanplays.jdcf.args.FailReason
-
The argument parsed was null
- ArgumentOptional<T> - Class in com.mrivanplays.jdcf.args
-
Represents a optional which contains things for our purpose and that's arguments.
- ArgumentResolver<T> - Interface in com.mrivanplays.jdcf.args
-
Represents a argument resolver which resolves a single argument into a type specified.
- ArgumentResolverContext - Class in com.mrivanplays.jdcf.args
-
Represents a data about a specific argument
- ArgumentResolverContext(String, JDA) - Constructor for class com.mrivanplays.jdcf.args.ArgumentResolverContext
- ArgumentResolverContext(String, Guild, JDA) - Constructor for class com.mrivanplays.jdcf.args.ArgumentResolverContext
- ArgumentResolvers - Class in com.mrivanplays.jdcf.args
-
A utility class containing the default argument resolvers.
- ArgumentResolvers() - Constructor for class com.mrivanplays.jdcf.args.ArgumentResolvers
C
- CaseArgumentResolver<T> - Class in com.mrivanplays.jdcf.builtin
-
Represents a cased
ArgumentResolver
. - CaseArgumentResolver(Map<String, T>) - Constructor for class com.mrivanplays.jdcf.builtin.CaseArgumentResolver
- CHANNEL - Static variable in class com.mrivanplays.jdcf.args.ArgumentResolvers
- CHANNEL_ID - Static variable in class com.mrivanplays.jdcf.args.ArgumentResolvers
- CHANNEL_NAME - Static variable in class com.mrivanplays.jdcf.args.ArgumentResolvers
- checkState(boolean, String) - Static method in class com.mrivanplays.jdcf.util.Utils
- com.mrivanplays.jdcf - package com.mrivanplays.jdcf
-
70% the "brains" needed for the command framework to run are being located here.
- com.mrivanplays.jdcf.args - package com.mrivanplays.jdcf.args
-
Argument handling for the java discord command framework.
- com.mrivanplays.jdcf.builtin - package com.mrivanplays.jdcf.builtin
-
Built in, ready for use commands/utilities for the framework.
- com.mrivanplays.jdcf.builtin.help - package com.mrivanplays.jdcf.builtin.help
-
Components for the help command are being here.
- com.mrivanplays.jdcf.data - package com.mrivanplays.jdcf.data
-
Data annotations for use in command info
- com.mrivanplays.jdcf.settings - package com.mrivanplays.jdcf.settings
-
Settings about built-in things and also some command handling allow/disallow
- com.mrivanplays.jdcf.settings.prefix - package com.mrivanplays.jdcf.settings.prefix
-
Handler of different prefixes per guild.
- com.mrivanplays.jdcf.translation - package com.mrivanplays.jdcf.translation
-
Basic translation system
- com.mrivanplays.jdcf.util - package com.mrivanplays.jdcf.util
-
Utilities, used by the command framework
- Command - Class in com.mrivanplays.jdcf
-
Represents a command.
- Command() - Constructor for class com.mrivanplays.jdcf.Command
- CommandAliases - Annotation Type in com.mrivanplays.jdcf.data
-
Represents a annotation, which specifies a specific
Command
's names. - CommandArguments - Class in com.mrivanplays.jdcf.args
-
Represents a class, containing the actual argument resolving of a command.
- CommandArguments(CommandExecutionContext, String[]) - Constructor for class com.mrivanplays.jdcf.args.CommandArguments
- CommandArguments(CommandExecutionContext, List<String>) - Constructor for class com.mrivanplays.jdcf.args.CommandArguments
- CommandData - Class in com.mrivanplays.jdcf
-
Represents command data.
- CommandData(String, String, String[], boolean) - Constructor for class com.mrivanplays.jdcf.CommandData
- CommandDescription - Annotation Type in com.mrivanplays.jdcf.data
-
Represents a annotation, which represents description of a
Command
. - CommandDispatcherARS<T> - Class in com.mrivanplays.jdcf.util
-
Deprecated.
- CommandDispatcherARS(JDA, ScheduledExecutorService) - Constructor for class com.mrivanplays.jdcf.util.CommandDispatcherARS
-
Deprecated.
- CommandDispatcherMessage - Class in com.mrivanplays.jdcf.util
-
Deprecated.
- CommandDispatcherMessage(String, JDA, Guild, TextChannel, Member, ScheduledExecutorService) - Constructor for class com.mrivanplays.jdcf.util.CommandDispatcherMessage
-
Deprecated.
- CommandExecutionContext - Class in com.mrivanplays.jdcf
-
Represents a generic data about the
Command
executed. - CommandExecutionContext(Message, String, boolean, CommandData, CommandManager) - Constructor for class com.mrivanplays.jdcf.CommandExecutionContext
- CommandHelp - Class in com.mrivanplays.jdcf.builtin.help
- CommandHelp(EventWaiter) - Constructor for class com.mrivanplays.jdcf.builtin.help.CommandHelp
- CommandManager - Class in com.mrivanplays.jdcf
-
Represents a command manager.
- CommandManager(JDA) - Constructor for class com.mrivanplays.jdcf.CommandManager
- CommandManager(JDA, CommandSettings) - Constructor for class com.mrivanplays.jdcf.CommandManager
- CommandManager(ShardManager) - Constructor for class com.mrivanplays.jdcf.CommandManager
- CommandManager(ShardManager, CommandSettings) - Constructor for class com.mrivanplays.jdcf.CommandManager
- CommandPrefix - Class in com.mrivanplays.jdcf.builtin
- CommandPrefix() - Constructor for class com.mrivanplays.jdcf.builtin.CommandPrefix
- CommandSettings - Class in com.mrivanplays.jdcf.settings
-
Represents a bunch of settings for the manager and for the command.
- CommandSettings() - Constructor for class com.mrivanplays.jdcf.settings.CommandSettings
- CommandShutdown - Class in com.mrivanplays.jdcf.builtin
-
Represents a shutdown command.
- CommandShutdown(String) - Constructor for class com.mrivanplays.jdcf.builtin.CommandShutdown
-
Creates a new shutdown command instance
- CommandUsage - Annotation Type in com.mrivanplays.jdcf.data
-
Represents a annotation, which represents usage of a
Command
. - complete() - Method in class com.mrivanplays.jdcf.util.CommandDispatcherARS
-
Deprecated.
- complete(boolean) - Method in class com.mrivanplays.jdcf.util.CommandDispatcherARS
-
Deprecated.
- completeAfter(long, TimeUnit) - Method in class com.mrivanplays.jdcf.util.CommandDispatcherARS
-
Deprecated.
- contains(T, T[]) - Static method in class com.mrivanplays.jdcf.util.Utils
- copy() - Method in class com.mrivanplays.jdcf.args.CommandArguments
-
Creates a new copy of this command arguments.
D
- deadline(long) - Method in class com.mrivanplays.jdcf.util.CommandDispatcherARS
-
Deprecated.
- DefaultFailReasonHandler - Class in com.mrivanplays.jdcf.builtin
-
Represents the default fail reason handler.
- DefaultFailReasonHandler() - Constructor for class com.mrivanplays.jdcf.builtin.DefaultFailReasonHandler
- defaultHandler(ObjectMapper) - Static method in interface com.mrivanplays.jdcf.settings.prefix.PrefixHandler
-
Default implementation of a prefix handler, using json file as a long term storage.
- defaultSettings() - Static method in class com.mrivanplays.jdcf.settings.CommandSettings
-
Returns the default settings object
- delete() - Method in class com.mrivanplays.jdcf.util.CommandDispatcherMessage
-
Deprecated.
- dispatchCommand(JDA, Guild, TextChannel, Member, String) - Method in class com.mrivanplays.jdcf.CommandManager
-
Deprecated.command dispatchers can't really be a thing, especially in JDA's ecosystem. If you want to dispatch commands manually, do it, but JDCF won't maintain such a breakable method.
- DOUBLE - Static variable in class com.mrivanplays.jdcf.args.ArgumentResolvers
E
- EventWaiter - Class in com.mrivanplays.jdcf.util
-
Took from JDA utilities in order to fix some concurrency issues
- EventWaiter(ScheduledExecutorService) - Constructor for class com.mrivanplays.jdcf.util.EventWaiter
- execute(CommandExecutionContext, CommandArguments) - Method in class com.mrivanplays.jdcf.builtin.CommandPrefix
- execute(CommandExecutionContext, CommandArguments) - Method in class com.mrivanplays.jdcf.builtin.CommandShutdown
-
JDCF calls this method when the command was triggered from a message.
- execute(CommandExecutionContext, CommandArguments) - Method in class com.mrivanplays.jdcf.builtin.help.CommandHelp
- execute(CommandExecutionContext, CommandArguments) - Method in class com.mrivanplays.jdcf.Command
-
JDCF calls this method when the command was triggered from a message.
- execute(CommandExecutionContext, CommandArguments) - Method in class com.mrivanplays.jdcf.RegisteredCommand
-
Executes the command with the specified context and arguments.
F
- FailReason - Enum in com.mrivanplays.jdcf.args
-
Represents a fail reason of why
RestArgumentAction.orElse(java.util.function.Consumer)
got invoked - FailReasonHandler - Interface in com.mrivanplays.jdcf.args
-
Represents a
FailReason
handler, which will be applied on every command argument, if so no handling was applied. - findCommand(String) - Method in class com.mrivanplays.jdcf.CommandManager
-
Finds the command(s) with the specified startsWith argument.
- FLOAT - Static variable in class com.mrivanplays.jdcf.args.ArgumentResolvers
G
- get() - Method in class com.mrivanplays.jdcf.args.ArgumentOptional
-
Gets the specified value if present.
- get(TranslationFile, String) - Static method in class com.mrivanplays.jdcf.translation.Translations
-
Retrieves a new
Translations
instance with the specifiedTranslationFile
- get(InputStream, String) - Static method in class com.mrivanplays.jdcf.translation.Translations
-
Retrieves a new
Translations
which are bound to the ".properties" file type. - get(Reader, String) - Static method in class com.mrivanplays.jdcf.translation.Translations
-
Retrieves a new
Translations
which are bound to the ".properties" file type. - getActivity() - Method in class com.mrivanplays.jdcf.util.CommandDispatcherMessage
-
Deprecated.
- getAlias() - Method in class com.mrivanplays.jdcf.CommandExecutionContext
-
Returns the alias which triggered command execution.
- getAliases() - Method in class com.mrivanplays.jdcf.RegisteredCommand
-
Returns the aliases (names) of the command (if specified)
- getArg(int) - Method in class com.mrivanplays.jdcf.args.CommandArguments
-
Gets the specified argument while decrementing the
CommandArguments.size()
. - getArgsLeft() - Method in class com.mrivanplays.jdcf.args.CommandArguments
-
Returns the raw arguments array.
- getArgsLeftList() - Method in class com.mrivanplays.jdcf.args.CommandArguments
-
Returns the raw list of arguments left.
- getArgument() - Method in class com.mrivanplays.jdcf.args.ArgumentResolverContext
-
Returns the specific argument.
- getArgUnsafe(int) - Method in class com.mrivanplays.jdcf.args.CommandArguments
-
Gets the specified argument while decrementing the
CommandArguments.size()
. - getAuthor() - Method in class com.mrivanplays.jdcf.CommandExecutionContext
-
Returns the discord
User
as a whole, author of the command. - getAuthor() - Method in class com.mrivanplays.jdcf.util.CommandDispatcherMessage
-
Deprecated.
- getChannel() - Method in class com.mrivanplays.jdcf.CommandExecutionContext
-
Returns the
MessageChannel
where the command was executed. - getChannel() - Method in class com.mrivanplays.jdcf.MessageEventSubscriber
-
Returns the
MessageChannel
where theMessage
was sent. - getChannel() - Method in class com.mrivanplays.jdcf.util.CommandDispatcherMessage
-
Deprecated.
- getCommand(String) - Method in class com.mrivanplays.jdcf.CommandManager
-
Retrieves the first command found which has the specified alias as alias or the specified alias is the command's name.
- getCommandAlias() - Method in class com.mrivanplays.jdcf.PermissionCheckContext
-
Returns the command alias, from which the command was triggered.
- getCommandData() - Method in class com.mrivanplays.jdcf.CommandExecutionContext
-
Returns the data of the command execution triggered.
- getCommandExecuteChannel() - Method in class com.mrivanplays.jdcf.settings.CommandSettings
-
Returns the channel, where commands should be executed.
- getCommandManagerCreator() - Method in class com.mrivanplays.jdcf.CommandExecutionContext
-
Returns the
CommandManager
, whom have initialized this command execution context. - getCommandsPerHelpPage() - Method in class com.mrivanplays.jdcf.settings.CommandSettings
-
Returns the commands, listed per page on help command.
- getDataAsCommandData() - Method in class com.mrivanplays.jdcf.RegisteredCommand
-
Returns the data of the command, stored in this object, as a new
CommandData
object. - getDefaultPrefix() - Method in class com.mrivanplays.jdcf.settings.prefix.ImmutablePrefixHandler
- getDefaultPrefix() - Method in class com.mrivanplays.jdcf.settings.prefix.MapPrefixHandler
- getDefaultPrefix() - Method in interface com.mrivanplays.jdcf.settings.prefix.PrefixHandler
-
Returns the default command prefix of the bot.
- getDescription() - Method in class com.mrivanplays.jdcf.CommandData
-
Returns the description of the
Command
this command data is holding, if present. - getDescription() - Method in class com.mrivanplays.jdcf.RegisteredCommand
-
Returns the description of the command (if specified)
- getErrorEmbed() - Method in class com.mrivanplays.jdcf.settings.CommandSettings
-
Returns the error embed.
- getExecutorService() - Method in class com.mrivanplays.jdcf.settings.CommandSettings
-
Returns a
ScheduledExecutorService
. - getFailReason() - Method in class com.mrivanplays.jdcf.args.ArgumentOptional
-
Returns the
FailReason
of why this argument optional may fail. - getFailReasonHandler() - Method in class com.mrivanplays.jdcf.settings.CommandSettings
-
Returns the fail reason handler.
- getFileType() - Method in class com.mrivanplays.jdcf.translation.JsonTranslationFile
- getFileType() - Method in class com.mrivanplays.jdcf.translation.PropertyTranslationFile
- getFileType() - Method in interface com.mrivanplays.jdcf.translation.TranslationFile
-
Returns the translation file type.
- getGuild() - Method in class com.mrivanplays.jdcf.args.ArgumentResolverContext
-
Returns the
Guild
where the argument was send if it was sent into a guild text channel. - getGuild() - Method in class com.mrivanplays.jdcf.CommandExecutionContext
-
Returns the
Guild
where theCommandExecutionContext.getMember()
have executed the command if it was executed in a guild. - getGuild() - Method in class com.mrivanplays.jdcf.MessageEventSubscriber
-
Returns the
Guild
if theMessage
was sent in one. - getGuild() - Method in class com.mrivanplays.jdcf.PermissionCheckContext
-
Returns the
Guild
instance if the command was executed in a guild. - getGuild() - Method in class com.mrivanplays.jdcf.util.CommandDispatcherMessage
-
Deprecated.
- getGuildPrefix(long) - Method in class com.mrivanplays.jdcf.settings.prefix.ImmutablePrefixHandler
- getGuildPrefix(long) - Method in class com.mrivanplays.jdcf.settings.prefix.MapPrefixHandler
- getGuildPrefix(long) - Method in interface com.mrivanplays.jdcf.settings.prefix.PrefixHandler
-
Returns the prefix, which belongs to the specified guild id.
- getHelpCommandEmbed() - Method in class com.mrivanplays.jdcf.settings.CommandSettings
-
Returns the embed for the help command.
- getIdLong() - Method in class com.mrivanplays.jdcf.util.CommandDispatcherMessage
-
Deprecated.
- getInstance() - Static method in class com.mrivanplays.jdcf.translation.TranslationCollector
- getJda() - Method in class com.mrivanplays.jdcf.args.ArgumentResolverContext
-
Returns the shard.
- getJda() - Method in class com.mrivanplays.jdcf.CommandExecutionContext
-
Returns the shard from where the command was executed.
- getJda() - Method in class com.mrivanplays.jdcf.MessageEventSubscriber
-
Returns the
JDA
instance, from where the message event was triggered - getJda() - Method in class com.mrivanplays.jdcf.PermissionCheckContext
-
Returns the
JDA
instance, where the command was triggered. - getJDA() - Method in class com.mrivanplays.jdcf.util.CommandDispatcherARS
-
Deprecated.
- getJDA() - Method in class com.mrivanplays.jdcf.util.CommandDispatcherMessage
-
Deprecated.
- getKeys() - Method in class com.mrivanplays.jdcf.translation.JsonTranslationFile
- getKeys() - Method in class com.mrivanplays.jdcf.translation.PropertyTranslationFile
- getKeys() - Method in interface com.mrivanplays.jdcf.translation.TranslationFile
-
Returns the keys of all translations present
- getKeys() - Method in class com.mrivanplays.jdcf.translation.Translations
-
Returns a immutable collection of the translation keys
- getLanguage() - Method in class com.mrivanplays.jdcf.translation.Translations
-
Returns the language of the translations held
- getMember() - Method in class com.mrivanplays.jdcf.CommandExecutionContext
-
Returns the guild
Member
, author of the command if the command was executed in guild. - getMember() - Method in class com.mrivanplays.jdcf.MessageEventSubscriber
-
Returns the
Guild
Member
which have send theMessage
, if theMessage
was sent in aGuild
. - getMember() - Method in class com.mrivanplays.jdcf.PermissionCheckContext
- getMember() - Method in class com.mrivanplays.jdcf.util.CommandDispatcherMessage
-
Deprecated.
- getMentionedChannels() - Method in class com.mrivanplays.jdcf.util.CommandDispatcherMessage
-
Deprecated.
- getMentionedMembers() - Method in class com.mrivanplays.jdcf.util.CommandDispatcherMessage
-
Deprecated.
- getMentionedMembers(Guild) - Method in class com.mrivanplays.jdcf.util.CommandDispatcherMessage
-
Deprecated.
- getMentionedRoles() - Method in class com.mrivanplays.jdcf.util.CommandDispatcherMessage
-
Deprecated.
- getMentionedUsers() - Method in class com.mrivanplays.jdcf.util.CommandDispatcherMessage
-
Deprecated.
- getMessage() - Method in class com.mrivanplays.jdcf.CommandExecutionContext
-
Returns the whole command
Message
. - getMessage() - Method in class com.mrivanplays.jdcf.MessageEventSubscriber
-
Returns the sent
Message
- getName() - Method in class com.mrivanplays.jdcf.RegisteredCommand
-
Returns the "potential" name of the command.
- getNames() - Method in class com.mrivanplays.jdcf.CommandData
-
Returns the name(s) of the
Command
this command data is holding. - getNoPermissionEmbed() - Method in class com.mrivanplays.jdcf.settings.CommandSettings
-
Returns the no permission embed.
- getPages(Collection<T>, int) - Static method in class com.mrivanplays.jdcf.util.Utils
- getPrefix(long) - Method in interface com.mrivanplays.jdcf.settings.prefix.PrefixHandler
-
Returns a usable command prefix.
- getPrefix(User) - Method in interface com.mrivanplays.jdcf.settings.prefix.PrefixHandler
-
Gets the prefix of which the bot is going to listen for commands in DMs of this user.
- getPrefixCommandEmbed() - Method in class com.mrivanplays.jdcf.settings.CommandSettings
-
Returns the prefix command embed.
- getPrefixHandler() - Method in class com.mrivanplays.jdcf.settings.CommandSettings
-
Returns the prefix handler.
- getPrivateChannel() - Method in class com.mrivanplays.jdcf.CommandExecutionContext
-
Returns the
PrivateChannel
if the command was executed in the specifiedauthor
's DMs. - getPrivateChannel() - Method in class com.mrivanplays.jdcf.MessageEventSubscriber
-
Returns the
PrivateChannel
where theMessage
was sent, if it as sent in one. - getRawArgument() - Method in class com.mrivanplays.jdcf.args.ArgumentOptional
-
Returns the raw argument
- getRegisteredCommands() - Method in class com.mrivanplays.jdcf.CommandManager
-
Returns a unmodifiable list of the registered commands.
- getSettings() - Method in class com.mrivanplays.jdcf.CommandManager
-
Returns the settings for all inbuilt things, handlers and stuff.
- getString(String) - Method in class com.mrivanplays.jdcf.translation.JsonTranslationFile
- getString(String) - Method in class com.mrivanplays.jdcf.translation.PropertyTranslationFile
- getString(String) - Method in interface com.mrivanplays.jdcf.translation.TranslationFile
-
Returns the translation with the specified key, or empty if the translation doesn't exist.
- getSuccessEmbed() - Method in class com.mrivanplays.jdcf.settings.CommandSettings
-
Returns the success embed
- getSupportedLanguages() - Method in class com.mrivanplays.jdcf.translation.TranslationCollector
-
Returns a copy of the supported languages.
- getTextChannel() - Method in class com.mrivanplays.jdcf.CommandExecutionContext
-
Returns the
TextChannel
if the command was executed in a guild. - getTextChannel() - Method in class com.mrivanplays.jdcf.MessageEventSubscriber
-
Returns the
TextChannel
where theMessage
was sent, if it was sent in aGuild
- getTextChannel() - Method in class com.mrivanplays.jdcf.util.CommandDispatcherMessage
-
Deprecated.
- getTranslation(String, Object...) - Method in class com.mrivanplays.jdcf.translation.Translations
-
Retrieves the translation, held by the specified key.
- getTranslationFileType() - Method in class com.mrivanplays.jdcf.translation.Translations
-
Returns the file type, where the translations are stored.
- getTranslations() - Method in class com.mrivanplays.jdcf.settings.CommandSettings
-
Returns the translations for messages.
- getTranslations(String) - Method in class com.mrivanplays.jdcf.translation.TranslationCollector
-
Retrieves the translations of the specified language
- getType() - Method in class com.mrivanplays.jdcf.util.CommandDispatcherMessage
-
Deprecated.
- getUsage() - Method in class com.mrivanplays.jdcf.CommandData
-
Returns the usage of the
Command
this command data is holding, if present. - getUsage() - Method in class com.mrivanplays.jdcf.RegisteredCommand
-
Returns the usage of the command (if specified)
- getUser() - Method in class com.mrivanplays.jdcf.MessageEventSubscriber
-
Returns the
User
, author of theMessage
- getUser() - Method in class com.mrivanplays.jdcf.PermissionCheckContext
-
Returns the
User
instance, which executed the command.
H
- handleFailReason(CommandExecutionContext, FailReason, String) - Method in interface com.mrivanplays.jdcf.args.FailReasonHandler
-
Method which will be called to every argument fail reason.
- handleFailReason(CommandExecutionContext, FailReason, String) - Method in class com.mrivanplays.jdcf.builtin.DefaultFailReasonHandler
-
Method which will be called to every argument fail reason.
- hasPermission(PermissionCheckContext) - Method in class com.mrivanplays.jdcf.builtin.CommandShutdown
-
An overridable method which checks if the member has the required permission to execute the command.
- hasPermission(PermissionCheckContext) - Method in class com.mrivanplays.jdcf.Command
-
An overridable method which checks if the member has the required permission to execute the command.
- hasPermission(PermissionCheckContext) - Method in class com.mrivanplays.jdcf.RegisteredCommand
-
Checks if the specified member has the required permission to execute this command.
I
- ifPresent(Consumer<T>) - Method in class com.mrivanplays.jdcf.args.ArgumentOptional
-
If value is being present, the executor will get executed and the return value will don't come in work, otherwise the return value, a rest argument action will execute its
RestArgumentAction.orElse(Consumer)
method if it was called. - ImmutablePrefixHandler - Class in com.mrivanplays.jdcf.settings.prefix
-
Represents a prefix handler with immutable prefix.
- ImmutablePrefixHandler(String) - Constructor for class com.mrivanplays.jdcf.settings.prefix.ImmutablePrefixHandler
- INTEGER - Static variable in class com.mrivanplays.jdcf.args.ArgumentResolvers
- isAllowDMSCommands() - Method in class com.mrivanplays.jdcf.settings.CommandSettings
-
Returns whenever the framework should allow commands to be executed not only in guilds, but also DMs
- isEdited() - Method in class com.mrivanplays.jdcf.util.CommandDispatcherMessage
-
Deprecated.
- isEnableHelpCommand() - Method in class com.mrivanplays.jdcf.settings.CommandSettings
-
Returns whenever the help command is being enabled.
- isEnableMentionInsteadPrefix() - Method in class com.mrivanplays.jdcf.settings.CommandSettings
-
Returns whenever the bot mention can be used instead of a prefix to run a command.
- isEnablePrefixCommand() - Method in class com.mrivanplays.jdcf.settings.CommandSettings
-
Returns whenever the in bundled prefix command is being enabled.
- isFromDispatcher() - Method in class com.mrivanplays.jdcf.CommandExecutionContext
-
Returns whenever this context was made from a dispatcher
- isFromGuild() - Method in class com.mrivanplays.jdcf.PermissionCheckContext
-
Returns whenever the command was triggered to be executed in a guild.
- isFromGuild() - Method in class com.mrivanplays.jdcf.util.CommandDispatcherMessage
-
Deprecated.
- isGuildMessage() - Method in class com.mrivanplays.jdcf.MessageEventSubscriber
-
Returns whenever the
Message
was fromGuild
- isGuildOnly() - Method in class com.mrivanplays.jdcf.CommandData
-
Returns whenever the
Command
this command data is holding is guild only. - isGuildOnly() - Method in class com.mrivanplays.jdcf.RegisteredCommand
-
Returns whenever this command should be only executed in guild.
- isLogExecutedCommands() - Method in class com.mrivanplays.jdcf.settings.CommandSettings
-
Should the framework log executed commands
- isMentioned(IMentionable, Message.MentionType...) - Method in class com.mrivanplays.jdcf.util.CommandDispatcherMessage
-
Deprecated.
- isPresent() - Method in class com.mrivanplays.jdcf.args.ArgumentOptional
-
Returns whenever the value is present.
- isSupported(String) - Method in class com.mrivanplays.jdcf.translation.TranslationCollector
-
Returns whenever the specified language is supported.
- isWebhookMessage() - Method in class com.mrivanplays.jdcf.util.CommandDispatcherMessage
-
Deprecated.
J
- joinArguments(int, char) - Method in class com.mrivanplays.jdcf.args.CommandArguments
-
Joins the specified arguments with the character specified.
- joinArguments(int, CharSequence) - Method in class com.mrivanplays.jdcf.args.CommandArguments
-
Joins the specified arguments with the specified characters.
- joinArgumentsSpace(int) - Method in class com.mrivanplays.jdcf.args.CommandArguments
-
Joins the specified arguments with space as a delimiter.
- JsonTranslationFile - Class in com.mrivanplays.jdcf.translation
-
Represents a translation file implementation, utilising the ".json" file type using jackson as library.
- JsonTranslationFile(InputStream) - Constructor for class com.mrivanplays.jdcf.translation.JsonTranslationFile
- JsonTranslationFile(InputStream, ObjectMapper) - Constructor for class com.mrivanplays.jdcf.translation.JsonTranslationFile
- JsonTranslationFile(Reader) - Constructor for class com.mrivanplays.jdcf.translation.JsonTranslationFile
- JsonTranslationFile(Reader, ObjectMapper) - Constructor for class com.mrivanplays.jdcf.translation.JsonTranslationFile
M
- map(Function<T, U>) - Method in class com.mrivanplays.jdcf.args.ArgumentOptional
-
Leads the specified argument to a new argument.
- MapPrefixHandler - Class in com.mrivanplays.jdcf.settings.prefix
-
Represents a prefix handler, working with a simple map.
- MapPrefixHandler(Map<Long, String>, Consumer<Map<Long, String>>) - Constructor for class com.mrivanplays.jdcf.settings.prefix.MapPrefixHandler
- MapPrefixHandler(Map<Long, String>, Consumer<Map<Long, String>>, String) - Constructor for class com.mrivanplays.jdcf.settings.prefix.MapPrefixHandler
- MarkGuildOnly - Annotation Type in com.mrivanplays.jdcf.data
-
Represents a annotation, which marks whether or not the
Command
marked is guild-only - mentionsEveryone() - Method in class com.mrivanplays.jdcf.util.CommandDispatcherMessage
-
Deprecated.
- MessageEventSubscriber - Class in com.mrivanplays.jdcf
-
Represents a object, holding data for message event.
- MessageEventSubscriber(Message) - Constructor for class com.mrivanplays.jdcf.MessageEventSubscriber
N
- next() - Method in class com.mrivanplays.jdcf.args.CommandArguments
-
Gets the next argument while decrementing the
CommandArguments.size()
. - next(ArgumentResolver<T>) - Method in class com.mrivanplays.jdcf.args.CommandArguments
-
Resolves the next argument to the specified resolver.
- nextDouble() - Method in class com.mrivanplays.jdcf.args.CommandArguments
- nextFloat() - Method in class com.mrivanplays.jdcf.args.CommandArguments
- nextInt() - Method in class com.mrivanplays.jdcf.args.CommandArguments
- nextString() - Method in class com.mrivanplays.jdcf.args.CommandArguments
- nextUnsafe() - Method in class com.mrivanplays.jdcf.args.CommandArguments
-
Gets the next argument while decrementing the
CommandArguments.size()
. - NO_FAIL_REASON - com.mrivanplays.jdcf.args.FailReason
-
Dummy reason for when there was no fail.
O
- of(T, FailReason, String, CommandExecutionContext, FailReasonHandler) - Static method in class com.mrivanplays.jdcf.args.ArgumentOptional
-
Creates a new argument optional.
- onEvent(GenericEvent) - Method in class com.mrivanplays.jdcf.CommandManager
- onEvent(GenericEvent) - Method in class com.mrivanplays.jdcf.util.EventWaiter
- orElse(Runnable) - Method in class com.mrivanplays.jdcf.args.RestArgumentAction
-
The specified
Runnable
gets invoked whatever theFailReason
was when the value wasn't present. - orElse(BiConsumer<FailReason, String>) - Method in class com.mrivanplays.jdcf.args.RestArgumentAction
- orElse(Consumer<FailReason>) - Method in class com.mrivanplays.jdcf.args.RestArgumentAction
-
The specified
Consumer
gets invoked with theFailReason
when the value wasn't present.
P
- PermissionCheckContext - Class in com.mrivanplays.jdcf
-
Represents a context for checking if a member/user has permission to execute the specified comamnd.
- PermissionCheckContext(JDA, User, Guild, Member, String) - Constructor for class com.mrivanplays.jdcf.PermissionCheckContext
- PrefixHandler - Interface in com.mrivanplays.jdcf.settings.prefix
-
Represents a
Command
prefix handler. - PropertyTranslationFile - Class in com.mrivanplays.jdcf.translation
-
Represents a translation file implementation, utilising the ".properties" file type.
- PropertyTranslationFile(InputStream) - Constructor for class com.mrivanplays.jdcf.translation.PropertyTranslationFile
- PropertyTranslationFile(Reader) - Constructor for class com.mrivanplays.jdcf.translation.PropertyTranslationFile
Q
- queue() - Method in class com.mrivanplays.jdcf.util.CommandDispatcherARS
-
Deprecated.
- queue(Consumer<? super T>) - Method in class com.mrivanplays.jdcf.util.CommandDispatcherARS
-
Deprecated.
- queue(Consumer<? super T>, Consumer<? super Throwable>) - Method in class com.mrivanplays.jdcf.util.CommandDispatcherARS
-
Deprecated.
- queueAfter(long, TimeUnit) - Method in class com.mrivanplays.jdcf.util.CommandDispatcherARS
-
Deprecated.
- queueAfter(long, TimeUnit, ScheduledExecutorService) - Method in class com.mrivanplays.jdcf.util.CommandDispatcherARS
-
Deprecated.
- queueAfter(long, TimeUnit, Consumer<? super T>) - Method in class com.mrivanplays.jdcf.util.CommandDispatcherARS
-
Deprecated.
- queueAfter(long, TimeUnit, Consumer<? super T>, ScheduledExecutorService) - Method in class com.mrivanplays.jdcf.util.CommandDispatcherARS
-
Deprecated.
- queueAfter(long, TimeUnit, Consumer<? super T>, Consumer<? super Throwable>) - Method in class com.mrivanplays.jdcf.util.CommandDispatcherARS
-
Deprecated.
- queueAfter(long, TimeUnit, Consumer<? super T>, Consumer<? super Throwable>, ScheduledExecutorService) - Method in class com.mrivanplays.jdcf.util.CommandDispatcherARS
-
Deprecated.
R
- reason(String) - Method in class com.mrivanplays.jdcf.util.CommandDispatcherARS
-
Deprecated.
- registerCommand(Command) - Method in class com.mrivanplays.jdcf.CommandManager
-
Registers the specified command into the manager.
- registerCommand(RegisteredCommand) - Method in class com.mrivanplays.jdcf.CommandManager
-
Registers the specified
RegisteredCommand
object into the manager. - registerCommands(Command...) - Method in class com.mrivanplays.jdcf.CommandManager
-
Registers the specified command array into the manager
- registerCommands(List<Command>) - Method in class com.mrivanplays.jdcf.CommandManager
-
Registers the specified command list into the manager
- RegisteredCommand - Class in com.mrivanplays.jdcf
-
Represents a registered command.
- RegisteredCommand(Command, String, String, String[], boolean) - Constructor for class com.mrivanplays.jdcf.RegisteredCommand
- resolve(ArgumentResolverContext) - Method in interface com.mrivanplays.jdcf.args.ArgumentResolver
-
Resolves the input argument into the type this resolver resolves.
- resolve(ArgumentResolverContext) - Method in class com.mrivanplays.jdcf.builtin.CaseArgumentResolver
-
Resolves the input argument into the type this resolver resolves.
- RestArgumentAction - Class in com.mrivanplays.jdcf.args
-
Represents a rest action, which comes role when the argument you wanted to get back in the code chain is null.
- RestArgumentAction(FailReason, String) - Constructor for class com.mrivanplays.jdcf.args.RestArgumentAction
- ROLE - Static variable in class com.mrivanplays.jdcf.args.ArgumentResolvers
- ROLE_ID - Static variable in class com.mrivanplays.jdcf.args.ArgumentResolvers
- ROLE_NAME - Static variable in class com.mrivanplays.jdcf.args.ArgumentResolvers
S
- savePrefixes() - Method in class com.mrivanplays.jdcf.settings.prefix.ImmutablePrefixHandler
- savePrefixes() - Method in class com.mrivanplays.jdcf.settings.prefix.MapPrefixHandler
- savePrefixes() - Method in interface com.mrivanplays.jdcf.settings.prefix.PrefixHandler
-
Saves the prefixes
- setAllowDMSCommands(boolean) - Method in class com.mrivanplays.jdcf.settings.CommandSettings
-
Sets whenever the framework should allow commands to be executed not only in guilds, but also DMs
- setAuthor(Supplier<EmbedBuilder>, User) - Static method in class com.mrivanplays.jdcf.util.Utils
- setCheck(BooleanSupplier) - Method in class com.mrivanplays.jdcf.util.CommandDispatcherARS
-
Deprecated.
- setCommandExecuteChannel(TextChannel) - Method in class com.mrivanplays.jdcf.settings.CommandSettings
-
Sets the channel where commands should be executed.
- setCommandsPerHelpPage(int) - Method in class com.mrivanplays.jdcf.settings.CommandSettings
-
Sets how much commands should be listed per page on help command.
- setDefaultPrefix(String) - Method in class com.mrivanplays.jdcf.settings.prefix.ImmutablePrefixHandler
- setDefaultPrefix(String) - Method in class com.mrivanplays.jdcf.settings.prefix.MapPrefixHandler
- setDefaultPrefix(String) - Method in interface com.mrivanplays.jdcf.settings.prefix.PrefixHandler
-
Sets a new default prefix of the bot.
- setEnableHelpCommand(boolean) - Method in class com.mrivanplays.jdcf.settings.CommandSettings
-
Sets the help command enabled state.
- setEnableMentionInsteadPrefix(boolean) - Method in class com.mrivanplays.jdcf.settings.CommandSettings
-
Sets whenever the bot mention can be used instead of a prefix to run a command.
- setEnablePrefixCommand(boolean) - Method in class com.mrivanplays.jdcf.settings.CommandSettings
-
Sets if the prefix command is enabled.
- setErrorEmbed(Supplier<EmbedBuilder>) - Method in class com.mrivanplays.jdcf.settings.CommandSettings
-
Sets the error embed
- setExecutorService(ScheduledExecutorService) - Method in class com.mrivanplays.jdcf.settings.CommandSettings
-
Sets a new executor service.
- setFailReasonHandler(FailReasonHandler) - Method in class com.mrivanplays.jdcf.settings.CommandSettings
-
Sets a new fail reason handler.
- setGuildPrefix(String, long) - Method in class com.mrivanplays.jdcf.settings.prefix.ImmutablePrefixHandler
- setGuildPrefix(String, long) - Method in class com.mrivanplays.jdcf.settings.prefix.MapPrefixHandler
- setGuildPrefix(String, long) - Method in interface com.mrivanplays.jdcf.settings.prefix.PrefixHandler
-
Sets a new guild prefix.
- setHelpCommandEmbed(Supplier<EmbedBuilder>) - Method in class com.mrivanplays.jdcf.settings.CommandSettings
-
Sets the help command embed.
- setLogExecutedCommands(boolean) - Method in class com.mrivanplays.jdcf.settings.CommandSettings
-
Sets whenever the framework should log executed commands
- setNoPermissionEmbed(Supplier<EmbedBuilder>) - Method in class com.mrivanplays.jdcf.settings.CommandSettings
-
Sets the no permission embed.
- setPrefixCommandEmbed(Supplier<EmbedBuilder>) - Method in class com.mrivanplays.jdcf.settings.CommandSettings
-
Sets the prefix command embed
- setPrefixHandler(PrefixHandler) - Method in class com.mrivanplays.jdcf.settings.CommandSettings
-
Sets a new prefix handler
- setSettings(CommandSettings) - Method in class com.mrivanplays.jdcf.CommandManager
-
Sets a new settings
- setSuccessEmbed(Supplier<EmbedBuilder>) - Method in class com.mrivanplays.jdcf.settings.CommandSettings
-
Sets the success embed.
- setTranslations(Translations) - Method in class com.mrivanplays.jdcf.settings.CommandSettings
-
Sets new translations for messages
- size() - Method in class com.mrivanplays.jdcf.args.CommandArguments
-
Returns the count of the specified arguments.
- submit() - Method in class com.mrivanplays.jdcf.util.CommandDispatcherARS
-
Deprecated.
- submit(boolean) - Method in class com.mrivanplays.jdcf.util.CommandDispatcherARS
-
Deprecated.
- submitAfter(long, TimeUnit) - Method in class com.mrivanplays.jdcf.util.CommandDispatcherARS
-
Deprecated.
- submitAfter(long, TimeUnit, ScheduledExecutorService) - Method in class com.mrivanplays.jdcf.util.CommandDispatcherARS
-
Deprecated.
T
- timeout(long, TimeUnit) - Method in class com.mrivanplays.jdcf.util.CommandDispatcherARS
-
Deprecated.
- TranslationCollector - Class in com.mrivanplays.jdcf.translation
-
Represents a collector of all known translations.
- TranslationFile - Interface in com.mrivanplays.jdcf.translation
-
Represents a translation file
- Translations - Class in com.mrivanplays.jdcf.translation
-
Represents a class, holding translations for a specific language.
U
- unsupported() - Method in class com.mrivanplays.jdcf.util.CommandDispatcherMessage
-
Deprecated.
- USER - Static variable in class com.mrivanplays.jdcf.args.ArgumentResolvers
- USER_ID - Static variable in class com.mrivanplays.jdcf.args.ArgumentResolvers
- USER_MENTION - Static variable in class com.mrivanplays.jdcf.args.ArgumentResolvers
- Utils - Class in com.mrivanplays.jdcf.util
- Utils() - Constructor for class com.mrivanplays.jdcf.util.Utils
V
- value() - Method in annotation type com.mrivanplays.jdcf.data.CommandAliases
-
The aliases string mentioned in the annotation description.
- value() - Method in annotation type com.mrivanplays.jdcf.data.CommandDescription
-
Represents the description you want your command to have.
- value() - Method in annotation type com.mrivanplays.jdcf.data.CommandUsage
-
Represents the usage string.
- valueOf(String) - Static method in enum com.mrivanplays.jdcf.args.FailReason
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.mrivanplays.jdcf.args.FailReason
-
Returns an array containing the constants of this enum type, in the order they are declared.
W
- waitForEvent(Class<T>, Predicate<T>, Consumer<T>, Runnable) - Method in class com.mrivanplays.jdcf.util.EventWaiter
- wasExecutedInGuild() - Method in class com.mrivanplays.jdcf.CommandExecutionContext
-
Returns whenever the command was executed in a guild.
- wasValuePresent() - Method in class com.mrivanplays.jdcf.args.RestArgumentAction
-
Returns whenever the value was present.
All Classes All Packages