Class CommandPrefix

    • Constructor Detail

      • CommandPrefix

        public CommandPrefix()
    • Method Detail

      • execute

        public boolean execute​(@NotNull
                               @NotNull CommandExecutionContext context,
                               @NotNull
                               @NotNull CommandArguments args)
        Description copied from class: Command
        JDCF calls this method when the command was triggered from a message. This will always happen when the command name was prefixed with the bot's prefix. According to settings in CommandManager it also might happen when the bot was mentioned except of the bot prefix. Also according to settings in CommandManager prefixes may vary between servers.
        Specified by:
        execute in class Command
        Parameters:
        context - data about the trigger
        args - the arguments typed when triggered
        Returns:
        command execution success state