use of me.shadorc.shadbot.utils.embed.HelpBuilder in project Shadbot by Shadorc.
the class SettingsCmd method getHelp.
@Override
public EmbedObject getHelp(String prefix) {
HelpBuilder embed = new HelpBuilder(this, prefix).setThumbnail("http://www.emoji.co.uk/files/emoji-one/objects-emoji-one/1898-gear.png").setDescription("Change Shadbot's settings for this server.").addArg("name", false).addArg("args", false).appendField("Additional Help", String.format("`%s%s <name> help`", prefix, this.getName()), false);
SETTINGS_MAP.values().stream().forEach(setting -> embed.appendField(String.format("Name: %s", setting.getName()), setting.getDescription(), false));
return embed.build();
}
Aggregations