Remove "requires" command field, overhaul Lavalink connection, fix message objects not being properly sent

This commit is contained in:
Essem 2022-10-11 10:46:10 -05:00
parent a274acd00c
commit e5fd71b388
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
10 changed files with 51 additions and 84 deletions

View file

@ -63,7 +63,6 @@ class Command {
static aliases = [];
static arguments = [];
static flags = [];
static requires = [];
static slashAllowed = true;
static directAllowed = true;
static adminOnly = false;

View file

@ -10,7 +10,6 @@ class MusicCommand extends Command {
}
}
static requires = ["sound"];
static slashAllowed = false;
static directAllowed = false;
}

View file

@ -4,10 +4,9 @@ import { play } from "../utils/soundplayer.js";
// only exists to sort the various soundboard commands
class SoundboardCommand extends Command {
async run() {
return await play(this.client, this.constructor.file, { channel: this.channel, author: this.author, member: this.member, type: this.type, interaction: this.interaction });
return play(this.client, this.constructor.file, { channel: this.channel, author: this.author, member: this.member, type: this.type, interaction: this.interaction });
}
static requires = ["sound"];
static slashAllowed = false;
static directAllowed = false;
}