BaseMessage

- Added unpacking support for `CHANNEL_SEND_MESSAGE` and `CHANNEL_NEW_MESSAGE`
This commit is contained in:
Tristan B. Velloza Kildaire 2023-11-13 09:55:01 +02:00
parent 13d761aeb0
commit c225d3fb6c
1 changed files with 10 additions and 0 deletions

View File

@ -130,6 +130,16 @@ public class BaseMessage
import davinci.c2s.channels : ChannelEnumerateReply;
message.command = Command.decodeTo!(ChannelEnumerateReply)(payload);
}
else if(message.commandType == CommandType.CHANNEL_SEND_MESSAGE)
{
import davinci.c2s.channels : ChannelMessage;
message.command = Command.decodeTo!(ChannelMessage)(payload);
}
else if(message.commandType == CommandType.CHANNEL_NEW_MESSAGE)
{
import davinci.c2s.channels : ChannelMessage;
message.command = Command.decodeTo!(ChannelMessage)(payload);
}
}