Something went wrong. Try again.
A Discord bot designed to entertain your server esmbot.net
Something went wrong. Try again.
123456789101112131415161718192021222324import type { Client } from "oceanic.js";import { type QueueEntry, type SoundPlayer, players, queues } from "#utils/soundplayer.js";import type { DatabasePlugin } from "../database.ts";import Command, { type CommandOptions } from "./command.ts";
class MusicCommand extends Command { connection?: SoundPlayer; queue: QueueEntry[]; constructor(client: Client, database: DatabasePlugin, options: CommandOptions) { super(client, database, options); if (this.guild) { this.connection = players.get(this.guild.id); this.queue = queues.get(this.guild.id) ?? []; } else { this.queue = []; } }
static directAllowed = false; static userAllowed = false;}
export default MusicCommand;