//if(cmd.isDisabled(channel.getGuild().getId())) content += "*" + cmdInfo.substring(0, cmdInfo.length() - 2) + "*\n"; //TODO migrate to SQLite //seems to have too much overhead
/*else*/content+=cmdInfo;
}
em.addField(entry.getKey(),content,false);
em.addBlankField(false);
}
em.getFields().remove(em.getFields().size()-1);
em.setFooter("Do "+prefix+"help [cmdname] for more information about the command!",
EmbedBuilderem=newEmbedBuilder();//DONE show permission required
for(inti=1;i<args.length;i++){
cmd=cmd.getSubCommand(args[i]);
if(cmd==null)returnnewCommandResult(CommandResultType.INVALIDARGS,"Invalid sub command! Check `"+prefix+"help "+String.join(" ",Arrays.copyOfRange(args,0,i))+"` for more info.");