Add getSettings documentation
authorChocobozzz <me@florianbigard.com>
Mon, 27 Apr 2020 08:21:24 +0000 (10:21 +0200)
committerChocobozzz <chocobozzz@cpy.re>
Mon, 4 May 2020 14:21:39 +0000 (16:21 +0200)
support/doc/plugins/guide.md

index fdad630873092fbbdcca21a163bec77b4c871943..81691c8c14f309b484bc983c38323f4783dce5d4 100644 (file)
@@ -157,6 +157,9 @@ registerSetting({
 })
 
 const adminName = await settingsManager.getSetting('admin-name')
+
+const result = await settingsManager.getSettings([ 'admin-name', 'admin-password' ])
+result['admin-name]
 ```
 
 #### Storage