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

@ -64,6 +64,7 @@ class Command {
static flags = [];
static requires = [];
static slashAllowed = true;
static directAllowed = true;
}
export default Command;

View file

@ -12,6 +12,7 @@ class MusicCommand extends Command {
static requires = ["sound"];
static slashAllowed = false;
static directAllowed = false;
}
export default MusicCommand;

View file

@ -9,6 +9,7 @@ class SoundboardCommand extends Command {
static requires = ["sound"];
static slashAllowed = false;
static directAllowed = false;
}
export default SoundboardCommand;