mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 06:03:04 -04:00
add permission checks to everything user-facing
This commit is contained in:
parent
9e9c53e1bd
commit
61274d6be5
66 changed files with 276 additions and 27 deletions
|
@ -7,6 +7,7 @@ const { editOrReply } = require("../../../labscore/utils/message");
|
|||
const { STATICS } = require("../../../labscore/utils/statics");
|
||||
const { isSupported, getCodeFromAny } = require("../../../labscore/utils/translate");
|
||||
|
||||
const { Permissions } = require("detritus-client/lib/constants");
|
||||
module.exports = {
|
||||
name: 'ocrtr',
|
||||
label: 'to',
|
||||
|
@ -21,6 +22,7 @@ module.exports = {
|
|||
args: [
|
||||
{name: 'from', default: 'auto', type: 'string', help: "Language to translate from"}
|
||||
],
|
||||
permissionsClient: [Permissions.EMBED_LINKS, Permissions.SEND_MESSAGES, Permissions.READ_MESSAGE_HISTORY, Permissions.USE_EXTERNAL_EMOJIS],
|
||||
run: async (context, args) => {
|
||||
context.triggerTyping();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue