Added ChannelMessage message type

This commit is contained in:
Tristan B. Velloza Kildaire 2021-08-27 14:47:47 +02:00
parent 0da5f7b481
commit 78ddaf85ec
1 changed files with 25 additions and 0 deletions

View File

@ -9,6 +9,8 @@ message DNETMessage
{
AUTH = 0;
REGISTER = 1;
CHANNEL_CMD = 2;
LIST_CHANS = 3;
}
// Type of message
@ -18,6 +20,29 @@ message DNETMessage
bytes content = 2;
}
// ChannelMessage
//
// These represent channel commands
message ChannelCommand
{
enum MessageType
{
CREATE = 0;
DESTROY = 1;
JOIN = 2;
LEAVE = 3;
SET_PERMS = 4;
GET_PERMS = 5;
}
// The channel to which the command applies
string name;
// Additional data (dependent on command)
bytes additionalData;
}
//UserMessage
//
//All authenticated messages