More stuff
This commit is contained in:
8
dist/dataTypes.d.ts
vendored
8
dist/dataTypes.d.ts
vendored
@@ -9,8 +9,12 @@ export declare class Song {
|
||||
image: string;
|
||||
constructor(type: SongType, title: string, songId: string, image: string);
|
||||
}
|
||||
export declare class PlayingSong extends Song {
|
||||
export declare class QueuedSong extends Song {
|
||||
listener: string;
|
||||
constructor(type: SongType, title: string, songId: string, image: string, listener: string);
|
||||
}
|
||||
export declare class PlayingSong extends QueuedSong {
|
||||
length: number;
|
||||
position: number;
|
||||
constructor(type: SongType, title: string, songId: string, image: string, length: number, position: number);
|
||||
constructor(type: SongType, title: string, songId: string, image: string, listener: string, length: number, position: number);
|
||||
}
|
||||
|
||||
18
dist/dataTypes.js
vendored
18
dist/dataTypes.js
vendored
@@ -15,7 +15,7 @@ var __extends = (this && this.__extends) || (function () {
|
||||
};
|
||||
})();
|
||||
exports.__esModule = true;
|
||||
exports.PlayingSong = exports.Song = exports.SongType = void 0;
|
||||
exports.PlayingSong = exports.QueuedSong = exports.Song = exports.SongType = void 0;
|
||||
var SongType;
|
||||
(function (SongType) {
|
||||
SongType[SongType["YouTube"] = 0] = "YouTube";
|
||||
@@ -31,14 +31,24 @@ var Song = /** @class */ (function () {
|
||||
return Song;
|
||||
}());
|
||||
exports.Song = Song;
|
||||
var QueuedSong = /** @class */ (function (_super) {
|
||||
__extends(QueuedSong, _super);
|
||||
function QueuedSong(type, title, songId, image, listener) {
|
||||
var _this = _super.call(this, type, title, songId, image) || this;
|
||||
_this.listener = listener;
|
||||
return _this;
|
||||
}
|
||||
return QueuedSong;
|
||||
}(Song));
|
||||
exports.QueuedSong = QueuedSong;
|
||||
var PlayingSong = /** @class */ (function (_super) {
|
||||
__extends(PlayingSong, _super);
|
||||
function PlayingSong(type, title, songId, image, length, position) {
|
||||
var _this = _super.call(this, type, title, songId, image) || this;
|
||||
function PlayingSong(type, title, songId, image, listener, length, position) {
|
||||
var _this = _super.call(this, type, title, songId, image, listener) || this;
|
||||
_this.length = length;
|
||||
_this.position = position;
|
||||
return _this;
|
||||
}
|
||||
return PlayingSong;
|
||||
}(Song));
|
||||
}(QueuedSong));
|
||||
exports.PlayingSong = PlayingSong;
|
||||
|
||||
6
dist/messageTypes.d.ts
vendored
6
dist/messageTypes.d.ts
vendored
@@ -1,4 +1,4 @@
|
||||
import { Song, PlayingSong } from "./dataTypes";
|
||||
import { Song, PlayingSong, QueuedSong } from "./dataTypes";
|
||||
export declare type StuenMessages = ListenerLeft | ListenerList | ListenerJoined | SendChatMessage | SearchSong | SearchSongResult | Join | QueueSong | CurrentQueue | CurrentSong | UnqueueSong | ReorderSong;
|
||||
export declare abstract class StuenMessage {
|
||||
type: string;
|
||||
@@ -42,8 +42,8 @@ export declare class QueueSong extends StuenMessage {
|
||||
constructor(song: Song);
|
||||
}
|
||||
export declare class CurrentQueue extends StuenMessage {
|
||||
songs: Song[];
|
||||
constructor(songs: Song[]);
|
||||
songs: QueuedSong[];
|
||||
constructor(songs: QueuedSong[]);
|
||||
}
|
||||
export declare class CurrentSong extends StuenMessage {
|
||||
song: PlayingSong | null;
|
||||
|
||||
Reference in New Issue
Block a user