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:
Essem 2022-09-01 10:40:55 -05:00
parent 3477f5c39f
commit 603e732704
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
14 changed files with 40 additions and 24 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -33,6 +33,7 @@ class ReloadCommand extends Command {
static description = "Reloads a command";
static arguments = ["[command]"];
static adminOnly = true;
}
export default ReloadCommand;

View file

@ -16,6 +16,7 @@ class RestartCommand extends Command {
static description = "Restarts me";
static aliases = ["reboot"];
static adminOnly = true;
}
export default RestartCommand;

View file

@ -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;