From: Chocobozzz Date: Mon, 27 Apr 2020 08:21:24 +0000 (+0200) Subject: Add getSettings documentation X-Git-Tag: v2.2.0-rc.1~113 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2db9c70f670c2210d103062fa143dc4888caa190;p=oweals%2Fpeertube.git Add getSettings documentation --- diff --git a/support/doc/plugins/guide.md b/support/doc/plugins/guide.md index fdad63087..81691c8c1 100644 --- a/support/doc/plugins/guide.md +++ b/support/doc/plugins/guide.md @@ -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