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
|
@ -6,6 +6,8 @@ const { DISCORD_INVITES, DEFAULT_BOT_PREFIX } = require('../../../labscore/const
|
|||
const { paginator } = require('../../../labscore/client');
|
||||
const { editOrReply } = require('../../../labscore/utils/message');
|
||||
|
||||
const { Permissions } = require("detritus-client/lib/constants");
|
||||
|
||||
function createHelpPage(context, title, contents, descriptions){
|
||||
return {
|
||||
"embeds": [
|
||||
|
@ -107,6 +109,7 @@ module.exports = {
|
|||
category: 'core',
|
||||
usage: 'help [<command>]'
|
||||
},
|
||||
permissionsClient: [Permissions.EMBED_LINKS, Permissions.SEND_MESSAGES, Permissions.USE_EXTERNAL_EMOJIS],
|
||||
run: async (context, args) => {
|
||||
if(args.command){
|
||||
// Detailed command view
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue