add Skip
This commit is contained in:
+3
-1
@@ -4,7 +4,7 @@ import {
|
||||
ListenerJoined,
|
||||
ListenerLeft,
|
||||
ListenerList, QueueSong, ReorderSong, SearchSong, SearchSongResult,
|
||||
SendChatMessage,
|
||||
SendChatMessage, SkipSong,
|
||||
StuenMessage, UnqueueSong
|
||||
} from "./messageTypes";
|
||||
|
||||
@@ -39,6 +39,8 @@ export default function parseMessage(message: string): StuenMessage | null {
|
||||
return new UnqueueSong(data.position, data.all);
|
||||
case 'ReorderSong':
|
||||
return new ReorderSong(data.positionToMove, data.placePosition);
|
||||
case 'SkipSong':
|
||||
return new SkipSong();
|
||||
default:
|
||||
console.error('Unknown message type:', data.type);
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user