BaseMessage

- Added decoding support to `upkr(...)` for `MEMBERSHIP_JOIN`, `MEMBERSHIP_LAVE` and `MEMBERSHIP_LIST`
This commit is contained in:
Tristan B. Velloza Kildaire 2023-11-16 22:28:11 +02:00
parent b9176cb246
commit 420cf24db0
1 changed files with 9 additions and 0 deletions

View File

@ -140,6 +140,15 @@ public class BaseMessage
import davinci.c2s.channels : ChannelMessage;
message.command = Command.decodeTo!(ChannelMessage)(payload);
}
else if(
message.commandType == CommandType.MEMBERSHIP_JOIN ||
message.commandType == CommandType.MEMBERSHIP_LEAVE ||
message.commandType == CommandType.MEMBERSHIP_LIST
)
{
import davinci.c2s.channels : ChannelMembership;
message.command = Command.decodeTo!(ChannelMembership)(payload);
}
}