Added static command field to disable a command in DMs

This commit is contained in:
Essem 2022-06-28 16:15:31 -05:00
parent c01ac7d32f
commit 02a6e256b5
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
12 changed files with 20 additions and 3 deletions

View file

@ -43,6 +43,7 @@ class ChannelCommand extends Command {
static description = "Enables/disables me in a channel (does not work with slash commands)";
static arguments = ["[enable/disable]", "{id}"];
static slashAllowed = false;
static directAllowed = false;
}
export default ChannelCommand;

View file

@ -34,6 +34,8 @@ class CommandCommand extends Command {
static description = "Enables/disables a command for a server";
static aliases = ["cmd"];
static arguments = ["[enable/disable]", "[command]"];
static slashAllowed = false;
static directAllowed = false;
}
export default CommandCommand;

View file

@ -49,6 +49,7 @@ class ServerInfoCommand extends Command {
static description = "Gets some info about the server";
static aliases = ["server"];
static directAllowed = false;
}
export default ServerInfoCommand;

View file

@ -38,6 +38,7 @@ class MusicAIOCommand extends Command {
static description = "Handles music playback";
static requires = ["sound"];
static aliases = ["m"];
static directAllowed = false;
}
export default MusicAIOCommand;

View file

@ -26,6 +26,7 @@ class SoundboardAIOCommand extends Command {
static description = "Plays a sound effect";
static requires = ["sound"];
static aliases = ["sound", "sb"];
static directAllowed = false;
}
export default SoundboardAIOCommand;

View file

@ -155,6 +155,7 @@ class TagsCommand extends Command {
type: 1,
description: "Gets a random tag"
}];
static directAllowed = false;
}
export default TagsCommand;