| Modifier and Type | Method | Description |
|---|---|---|
CommandSettings |
CommandSettings.addChannelsToBlacklist(long... channelIds) |
Adds multiple channels to the blacklist.
|
CommandSettings |
CommandSettings.addChannelsToBlacklist(Collection<Long> channelIds) |
Adds multiple channels to the blacklist.
|
CommandSettings |
CommandSettings.addChannelToBlacklist(long channelId) |
Adds a given channel to the blacklist (meaning commands can not be executed in there).
|
CommandSettings |
CommandSettings.addHelpLabel(String label) |
Deprecated.
This method is deprecated and thus not supported anymore.
|
CommandSettings |
CommandSettings.addHelpLabels(String... labels) |
Deprecated.
This method is deprecated and thus not supported anymore.
|
CommandSettings |
CommandSettings.addHelpLabels(Collection<String> labels) |
Deprecated.
This method is deprecated and thus not supported anymore.
|
CommandSettings |
CommandSettings.clear() |
Resets this whole instance by clearing the commands and setting everything to how it was at the beginning.
|
CommandSettings |
CommandSettings.clearBlacklist() |
Clears the blacklist so that no channel is blacklisted anymore.
|
CommandSettings |
CommandSettings.clearCommands() |
Clears all commands.
|
CommandSettings |
CommandSettings.clearCustomPrefixes() |
Removes all entries from the prefix map, resetting every custom prefix.
|
CommandSettings |
CommandSettings.clearHelpLabels() |
Deprecated.
This method is deprecated and thus not supported anymore.
|
CommandSettings |
CommandEvent.getCommandSettings() |
Returns the CommandSettings instance this command was called for.
|
CommandSettings |
CommandSettings.put(ICommand executor,
String label) |
Use this method to add commands from your project.
|
CommandSettings |
CommandSettings.put(ICommand executor,
String... labels) |
Use this method to add commands with aliases.
|
CommandSettings |
CommandSettings.put(ICommand executor,
Collection<String> labels) |
Use this method to add commands with aliases from a Set.
|
CommandSettings |
CommandSettings.setBotExecution(boolean botExecution) |
Setter for the field botExecution.
|
CommandSettings |
CommandSettings.setCooldown(long msCooldown) |
Sets the cooldown for this instance of settings.
|
CommandSettings |
CommandSettings.setCustomPrefix(long guildId,
String prefix) |
Use this method to add a custom command prefix to a guild.
|
CommandSettings |
CommandSettings.setCustomPrefixes(Map<Long,String> guildIdPrefixMap) |
You may use this method as another way to add custom prefixes.
|
CommandSettings |
CommandSettings.setDefaultPrefix(String prefix) |
Use this method to set the default prefix.
|
CommandSettings |
CommandSettings.setHelpCommandColor(Color color) |
Sets the color the help message embed will have if you use DefaultHelpCommand.
|
CommandSettings |
CommandSettings.setResetCooldown(boolean resetCooldown) |
Sets the parameter resetCooldown.
|
CommandSettings |
CommandSettings.setUnknownCommandMessage(net.dv8tion.jda.core.entities.Message message) |
Sets a Message that will be sent in the event of a Member using the prefix without executing any valid command.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected static CommandEvent.Command |
CommandEvent.parseCommand(String raw,
String prefix,
CommandSettings settings) |
| Constructor | Description |
|---|---|
CommandEvent(net.dv8tion.jda.core.JDA api,
long responseNumber,
net.dv8tion.jda.core.entities.Message message,
CommandEvent.Command command,
CommandSettings settings) |
Copyright © 2018. All rights reserved.