2022-04-05 03:05:28 +00:00
|
|
|
import Command from "./command.js";
|
|
|
|
import { play } from "../utils/soundplayer.js";
|
|
|
|
|
|
|
|
// only exists to sort the various soundboard commands
|
|
|
|
class SoundboardCommand extends Command {
|
|
|
|
async run() {
|
2022-10-11 15:46:10 +00:00
|
|
|
return play(this.client, this.constructor.file, { channel: this.channel, author: this.author, member: this.member, type: this.type, interaction: this.interaction });
|
2022-04-05 03:05:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static slashAllowed = false;
|
2022-06-28 21:15:31 +00:00
|
|
|
static directAllowed = false;
|
2022-04-05 03:05:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export default SoundboardCommand;
|