mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 06:03:04 -04:00
limited test command system
This commit is contained in:
parent
00873fa78e
commit
cde456f913
4 changed files with 34 additions and 11 deletions
|
@ -7,6 +7,7 @@ const { paginator } = require('../../../labscore/client');
|
|||
const { editOrReply } = require('../../../labscore/utils/message');
|
||||
|
||||
const { Permissions } = require("detritus-client/lib/constants");
|
||||
const { canUseLimitedTestCommands } = require('../utils/testing');
|
||||
|
||||
function createHelpPage(context, title, contents, descriptions){
|
||||
return {
|
||||
|
@ -113,6 +114,7 @@ module.exports = {
|
|||
},
|
||||
permissionsClient: [Permissions.EMBED_LINKS, Permissions.SEND_MESSAGES, Permissions.USE_EXTERNAL_EMOJIS, Permissions.READ_MESSAGE_HISTORY],
|
||||
run: async (context, args) => {
|
||||
if(canUseLimitedTestCommands(context)) categories["limited"] = `${icon("fun")} Limited Test Commands`;
|
||||
if(args.command){
|
||||
await context.triggerTyping()
|
||||
// Detailed command view
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue