13 lines
368 B
JavaScript
13 lines
368 B
JavaScript
|
const Command = require("./command.js");
|
||
|
const soundPlayer = require("../utils/soundplayer.js");
|
||
|
|
||
|
class MusicCommand extends Command {
|
||
|
constructor(client, message, args, content) {
|
||
|
super(client, message, args, content);
|
||
|
this.connection = soundPlayer.players.get(message.channel.guild.id);
|
||
|
}
|
||
|
|
||
|
static requires = ["sound"];
|
||
|
}
|
||
|
|
||
|
module.exports = MusicCommand;
|