add permission checks to everything user-facing

This commit is contained in:
derpystuff 2023-06-15 12:09:40 +02:00
parent 9e9c53e1bd
commit 61274d6be5
66 changed files with 276 additions and 27 deletions

View file

@ -6,6 +6,8 @@ const { codeblock, icon } = require('../../../labscore/utils/markdown');
const superagent = require('superagent');
const { Permissions } = require("detritus-client/lib/constants");
module.exports = {
name: 'qr',
label: 'text',
@ -17,6 +19,7 @@ module.exports = {
category: 'utils',
usage: `qr <contents>`
},
permissionsClient: [Permissions.EMBED_LINKS, Permissions.SEND_MESSAGES, Permissions.READ_MESSAGE_HISTORY, Permissions.ATTACH_FILES, Permissions.USE_EXTERNAL_EMOJIS],
run: async (context, args) => {
// If we have an argument, generate code