mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-10 15:13: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 { getRecentImage } = require("../../../../labscore/utils/attachment");
|
|||
const { billboardCityscape } = require("../../../../service/makesweet");
|
||||
const { STATICS } = require("../../../../labscore/utils/statics");
|
||||
|
||||
const { Permissions } = require("detritus-client/lib/constants");
|
||||
|
||||
module.exports = {
|
||||
name: 'billboard',
|
||||
label: 'text',
|
||||
|
@ -16,6 +18,7 @@ module.exports = {
|
|||
category: 'image',
|
||||
usage: 'billboard'
|
||||
},
|
||||
permissionsClient: [Permissions.EMBED_LINKS, Permissions.SEND_MESSAGES, Permissions.USE_EXTERNAL_EMOJIS, Permissions.ATTACH_FILES],
|
||||
run: async (context, args) => {
|
||||
|
||||
let image = await getRecentImage(context, 50)
|
||||
|
|
|
@ -6,6 +6,8 @@ const { getRecentImage } = require("../../../../labscore/utils/attachment");
|
|||
const { circuitBoard } = require("../../../../service/makesweet");
|
||||
const { STATICS } = require("../../../../labscore/utils/statics");
|
||||
|
||||
const { Permissions } = require("detritus-client/lib/constants");
|
||||
|
||||
module.exports = {
|
||||
name: 'circuitboard',
|
||||
label: 'text',
|
||||
|
@ -16,6 +18,7 @@ module.exports = {
|
|||
category: 'image',
|
||||
usage: 'circuitboard'
|
||||
},
|
||||
permissionsClient: [Permissions.EMBED_LINKS, Permissions.SEND_MESSAGES, Permissions.USE_EXTERNAL_EMOJIS, Permissions.ATTACH_FILES],
|
||||
run: async (context, args) => {
|
||||
|
||||
let image = await getRecentImage(context, 50)
|
||||
|
|
|
@ -6,6 +6,8 @@ const { getRecentImage } = require("../../../../labscore/utils/attachment");
|
|||
const { flag } = require("../../../../service/makesweet");
|
||||
const { STATICS } = require("../../../../labscore/utils/statics");
|
||||
|
||||
const { Permissions } = require("detritus-client/lib/constants");
|
||||
|
||||
module.exports = {
|
||||
name: 'flag',
|
||||
label: 'text',
|
||||
|
@ -16,6 +18,7 @@ module.exports = {
|
|||
category: 'image',
|
||||
usage: 'flag'
|
||||
},
|
||||
permissionsClient: [Permissions.EMBED_LINKS, Permissions.SEND_MESSAGES, Permissions.USE_EXTERNAL_EMOJIS, Permissions.ATTACH_FILES],
|
||||
run: async (context, args) => {
|
||||
|
||||
let image = await getRecentImage(context, 50)
|
||||
|
|
|
@ -6,6 +6,8 @@ const { getRecentImage } = require("../../../../labscore/utils/attachment");
|
|||
const { heartLocket } = require("../../../../service/makesweet");
|
||||
const { STATICS } = require("../../../../labscore/utils/statics");
|
||||
|
||||
const { Permissions } = require("detritus-client/lib/constants");
|
||||
|
||||
module.exports = {
|
||||
name: 'heartlocket',
|
||||
label: 'text',
|
||||
|
@ -16,6 +18,7 @@ module.exports = {
|
|||
category: 'image',
|
||||
usage: 'heartlocket [<text>]'
|
||||
},
|
||||
permissionsClient: [Permissions.EMBED_LINKS, Permissions.SEND_MESSAGES, Permissions.USE_EXTERNAL_EMOJIS, Permissions.ATTACH_FILES],
|
||||
run: async (context, args) => {
|
||||
|
||||
let image = await getRecentImage(context, 50)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue