deploy
This commit is contained in:
+3
-1
@@ -1,5 +1,5 @@
|
||||
import {
|
||||
ChatMessage, CurrentQueue,
|
||||
ChatMessage, CurrentQueue, CurrentSong,
|
||||
Join,
|
||||
ListenerJoined,
|
||||
ListenerLeft,
|
||||
@@ -33,6 +33,8 @@ export default function parseMessage(message: string): StuenMessage | null {
|
||||
return new QueueSong(data.song);
|
||||
case 'CurrentQueue':
|
||||
return new CurrentQueue(data.songs)
|
||||
case 'CurrentSong':
|
||||
return new CurrentSong(data.song);
|
||||
default:
|
||||
console.error('Unknown message type:', data.type);
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user