Remove creation date from mkdocs, added ability to limit owner commands to certain server, don't append help command to end of playing message if classic commands are disabled, fix interaction upload size
This commit is contained in:
parent
3477f5c39f
commit
603e732704
14 changed files with 40 additions and 24 deletions
|
@ -8,6 +8,7 @@ class BroadcastCommand extends Command {
|
|||
if (!owners.includes(this.author.id)) {
|
||||
this.success = false;
|
||||
resolve("Only the bot owner can broadcast messages!");
|
||||
return;
|
||||
}
|
||||
const message = this.options.message ?? this.args.join(" ");
|
||||
if (message?.trim()) {
|
||||
|
@ -35,6 +36,7 @@ class BroadcastCommand extends Command {
|
|||
}];
|
||||
|
||||
static description = "Broadcasts a playing message until the command is run again or the bot restarts";
|
||||
static adminOnly = true;
|
||||
}
|
||||
|
||||
export default BroadcastCommand;
|
|
@ -38,6 +38,7 @@ class EvalCommand extends Command {
|
|||
static description = "Executes JavaScript code";
|
||||
static aliases = ["run"];
|
||||
static arguments = ["[code]"];
|
||||
static adminOnly = true;
|
||||
}
|
||||
|
||||
export default EvalCommand;
|
|
@ -42,6 +42,7 @@ class ExecCommand extends Command {
|
|||
static description = "Executes a shell command";
|
||||
static aliases = ["runcmd"];
|
||||
static arguments = ["[command]"];
|
||||
static adminOnly = true;
|
||||
}
|
||||
|
||||
export default ExecCommand;
|
|
@ -16,7 +16,7 @@ class ImageReloadCommand extends Command {
|
|||
}
|
||||
|
||||
static description = "Attempts to reconnect to all available image processing servers";
|
||||
static aliases = ["magickconnect", "magick"];
|
||||
static adminOnly = true;
|
||||
}
|
||||
|
||||
export default ImageReloadCommand;
|
||||
|
|
|
@ -33,6 +33,7 @@ class ReloadCommand extends Command {
|
|||
|
||||
static description = "Reloads a command";
|
||||
static arguments = ["[command]"];
|
||||
static adminOnly = true;
|
||||
}
|
||||
|
||||
export default ReloadCommand;
|
||||
|
|
|
@ -16,6 +16,7 @@ class RestartCommand extends Command {
|
|||
|
||||
static description = "Restarts me";
|
||||
static aliases = ["reboot"];
|
||||
static adminOnly = true;
|
||||
}
|
||||
|
||||
export default RestartCommand;
|
|
@ -28,6 +28,7 @@ class SoundReloadCommand extends Command {
|
|||
|
||||
static description = "Attempts to reconnect to all available Lavalink nodes";
|
||||
static aliases = ["lava", "lavalink", "lavaconnect", "soundconnect"];
|
||||
static adminOnly = true;
|
||||
}
|
||||
|
||||
export default SoundReloadCommand;
|
Loading…
Add table
Add a link
Reference in a new issue