onCommandSave

Saves current configuration to disk.

This saves all plugins' settings, not just this plugin's, effectively regenerating the configuration file.

version(WithAdminPlugin)
private
@IRCEventHandler().onEvent(IRCEvent.Type.CHAN).onEvent(IRCEvent.Type.QUERY).permissionsRequired(Permissions.admin).channelPolicy(ChannelPolicy.home).addCommand(IRCEventHandler.Command().word("save").policy(PrefixPolicy.nickname).description("Saves current configuration."))
void
onCommandSave