Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | import { CommandInteraction } from "discord.js";
import { Player } from "lavalink-client";
export default class BasePlayer extends Player {
private _isPremium = false;
private _songMessage: string;
private _playerMessage: string;
private _playerAuthor: string;
private _isSlash: boolean;
private _interaction?: CommandInteraction;
public constructor(args) {
super(args, args);
}
public get isPremium(): boolean {
return this._isPremium;
}
public set isPremium(value: boolean) {
this._isPremium = value;
}
public get songMessage(): string {
return this._songMessage;
}
public set songMessage(messageId: string) {
this._songMessage = messageId;
}
public get playerMessage(): string {
return this._playerMessage;
}
public set playerMessage(messageId: string) {
this._playerMessage = messageId;
}
public get playerAuthor(): string {
return this._playerAuthor;
}
public set playerAuthor(authorId) {
this._playerAuthor = authorId;
}
public get slash(): {
isSlash: boolean;
interaction: CommandInteraction;
} {
return {
isSlash: this._isSlash,
interaction: this._interaction,
};
}
public set slash({ isSlash, interaction }) {
this._isSlash = isSlash;
this._interaction = interaction;
}
}
|