mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 06:03:04 -04:00
prevent limited test commands from showing outside
of limited tests
This commit is contained in:
parent
54c351c1a3
commit
9bb2e00ee8
2 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue