Write websocket server.

This commit is contained in:
Paul Makles
2020-02-08 16:47:19 +00:00
parent d5d14305d0
commit 4f6850b2d0
8 changed files with 252 additions and 185 deletions

View File

@@ -11,8 +11,8 @@ use ulid::Ulid;
#[repr(usize)]
pub enum ChannelType {
DM = 0,
GROUP_DM = 1,
GUILD_CHANNEL = 2,
GROUPDM = 1,
GUILDCHANNEL = 2,
}
fn has_permission(user: &User, target: &Channel) -> bool {