mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-07 21:53:07 -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
|
@ -5,6 +5,8 @@ const { editOrReply } = require('../../../labscore/utils/message')
|
|||
const { paginator } = require('../../../labscore/client');
|
||||
const { dictionary } = require('../../../labscore/api');
|
||||
|
||||
const { Permissions } = require("detritus-client/lib/constants");
|
||||
|
||||
function createDictionaryPage(context, result){
|
||||
let phon = ''
|
||||
if(result.phonetic) phon = `\n*${result.phonetic}*`
|
||||
|
@ -43,6 +45,7 @@ module.exports = {
|
|||
category: 'search',
|
||||
usage: 'define <query>'
|
||||
},
|
||||
permissionsClient: [Permissions.EMBED_LINKS, Permissions.SEND_MESSAGES, Permissions.USE_EXTERNAL_EMOJIS],
|
||||
run: async (context, args) => {
|
||||
context.triggerTyping();
|
||||
try{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue