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
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
|
@ -155,6 +155,7 @@ class TagsCommand extends Command {
|
|||
type: 1,
|
||||
description: "Gets a random tag"
|
||||
}];
|
||||
static directAllowed = false;
|
||||
}
|
||||
|
||||
export default TagsCommand;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue