2023-03-15 14:09:09 +00:00
|
|
|
import Command from "./command.js";
|
|
|
|
import { players, queues } from "../utils/soundplayer.js";
|
|
|
|
|
|
|
|
class MusicCommand extends Command {
|
|
|
|
constructor(client, options) {
|
|
|
|
super(client, options);
|
|
|
|
if (this.guild) {
|
|
|
|
this.connection = players.get(this.guild.id);
|
|
|
|
this.queue = queues.get(this.guild.id);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static slashAllowed = false;
|
|
|
|
static directAllowed = false;
|
|
|
|
}
|
|
|
|
|
|
|
|
export default MusicCommand;
|