From 8662917beacb72bfa22b1dca3e9e27a5ca0f3342 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Sun, 22 Nov 2020 13:22:31 +0200 Subject: [PATCH] Set inboxServerPermission to manageMessages by default With single server setups being extremely common, this is a safer default than not requiring any permissions at all. --- src/data/cfg.jsdoc.js | 2 +- src/data/cfg.schema.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/cfg.jsdoc.js b/src/data/cfg.jsdoc.js index b6e46db..1989a48 100644 --- a/src/data/cfg.jsdoc.js +++ b/src/data/cfg.jsdoc.js @@ -18,7 +18,7 @@ * @property {string} [mentionRole="here"] * @property {boolean} [pingOnBotMention=true] * @property {string} [botMentionResponse] - * @property {array} [inboxServerPermission=[]] + * @property {array} [inboxServerPermission=["manageMessages"]] * @property {boolean} [alwaysReply=false] * @property {boolean} [alwaysReplyAnon=false] * @property {boolean} [useNicknames=false] diff --git a/src/data/cfg.schema.json b/src/data/cfg.schema.json index bc5d443..b0f3989 100644 --- a/src/data/cfg.schema.json +++ b/src/data/cfg.schema.json @@ -115,7 +115,7 @@ "inboxServerPermission": { "$ref": "#/definitions/stringArray", - "default": [] + "default": ["manageMessages"] }, "alwaysReply": { "$ref": "#/definitions/customBoolean",