Refactor command reloading

This commit is contained in:
Essem 2022-09-10 23:06:40 -05:00
parent 86f6811e6e
commit 239d69d6d3
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
4 changed files with 28 additions and 30 deletions

View file

@ -6,6 +6,7 @@ class MusicAIOCommand extends Command {
async run() {
let cmd = this.type === "classic" ? this.args[0] : this.optionsArray[0].name;
if (cmd === "music" || this.constructor.aliases.includes(cmd)) return "https://projectlounge.pw/robotdance.gif";
await this.acknowledge();
if (this.type === "classic") {
this.origOptions.args.shift();
} else {