Added static command field to disable a command in DMs
This commit is contained in:
parent
c01ac7d32f
commit
02a6e256b5
12 changed files with 20 additions and 3 deletions
|
@ -64,6 +64,7 @@ class Command {
|
|||
static flags = [];
|
||||
static requires = [];
|
||||
static slashAllowed = true;
|
||||
static directAllowed = true;
|
||||
}
|
||||
|
||||
export default Command;
|
|
@ -12,6 +12,7 @@ class MusicCommand extends Command {
|
|||
|
||||
static requires = ["sound"];
|
||||
static slashAllowed = false;
|
||||
static directAllowed = false;
|
||||
}
|
||||
|
||||
export default MusicCommand;
|
||||
|
|
|
@ -9,6 +9,7 @@ class SoundboardCommand extends Command {
|
|||
|
||||
static requires = ["sound"];
|
||||
static slashAllowed = false;
|
||||
static directAllowed = false;
|
||||
}
|
||||
|
||||
export default SoundboardCommand;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue