Refactor command reloading
This commit is contained in:
parent
86f6811e6e
commit
239d69d6d3
4 changed files with 28 additions and 30 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue