mrmBot-Matrix/classes/musicCommand.js

19 lines
451 B
JavaScript
Raw Normal View History

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);
2022-03-31 18:47:22 +00:00
}
}
static requires = ["sound"];
2022-03-31 18:49:17 +00:00
static slashAllowed = false;
static directAllowed = false;
}
2022-03-31 18:49:17 +00:00
export default MusicCommand;