Remove "requires" command field, overhaul Lavalink connection, fix message objects not being properly sent
This commit is contained in:
parent
a274acd00c
commit
e5fd71b388
10 changed files with 51 additions and 84 deletions
|
@ -63,7 +63,6 @@ class Command {
|
|||
static aliases = [];
|
||||
static arguments = [];
|
||||
static flags = [];
|
||||
static requires = [];
|
||||
static slashAllowed = true;
|
||||
static directAllowed = true;
|
||||
static adminOnly = false;
|
||||
|
|
|
@ -10,7 +10,6 @@ class MusicCommand extends Command {
|
|||
}
|
||||
}
|
||||
|
||||
static requires = ["sound"];
|
||||
static slashAllowed = false;
|
||||
static directAllowed = false;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue