package top.quantic.sentry.discord.core;

import joptsimple.OptionSet;
import sx.blah.discord.handle.obj.IMessage;

public class CommandContext {

    private IMessage message;
    private String prefix;
    private Command command;
    private String[] args;
    private OptionSet optionSet;

    public IMessage getMessage() {
        return message;
    }

    public void setMessage(IMessage message) {
        this.message = message;
    }

    public String getPrefix() {
        return prefix;
    }

    public void setPrefix(String prefix) {
        this.prefix = prefix;
    }

    public Command getCommand() {
        return command;
    }

    public void setCommand(Command command) {
        this.command = command;
    }

    public String[] getArgs() {
        return args;
    }

    public void setArgs(String[] args) {
        this.args = args;
    }

    public OptionSet getOptionSet() {
        return optionSet;
    }

    public void setOptionSet(OptionSet optionSet) {
        this.optionSet = optionSet;
    }
}

@@ -1029,11 +1029,323 @@
 t;%0A    %7D
+%0A%0A    public String getContentAfterPrefix() %7B%0A        if (message == null %7C%7C prefix == null) %7B%0A            return null;%0A        %7D%0A        String content = message.getContent();%0A        if (!content.contains(prefix)) %7B%0A            return content;%0A        %7D%0A        return content.substring(prefix.length());%0A    %7D
 %0A%7D%0A

Add method to get a command's content after the prefix