diff --git a/commands/message/core/help.js b/commands/message/core/help.js index 67115b0..3bc11eb 100644 --- a/commands/message/core/help.js +++ b/commands/message/core/help.js @@ -116,6 +116,8 @@ 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("stars")} Limited Test Commands`; + else if(categories["limited"]) delete categories["limited"] + if(args.command){ await context.triggerTyping() // Detailed command view diff --git a/labscore/utils/testing.js b/labscore/utils/testing.js index e28a9cb..632eece 100644 --- a/labscore/utils/testing.js +++ b/labscore/utils/testing.js @@ -23,9 +23,9 @@ function isLimitedTestUser(user){ } function canUseLimitedTestCommands(context){ - if(LIMITED_TEST_GUILDS && LIMITED_TEST_GUILDS.includes(context.guild.id)) return true; - if(LIMITED_TEST_CHANNELS && LIMITED_TEST_CHANNELS.includes(context.channel.id)) return true; - if(LIMITED_TEST_USERS && LIMITED_TEST_USERS.includes(context.user.id)) return true; + if(isLimitedTestGuild(context.guild)) return true; + if(isLimitedTestChannel(context.channel)) return true; + if(isLimitedTestUser(context.user)) return true; return false; }