from enum import Enum

class ClientMessage:
    def __init__(self, content, timestamp, channel, type):
        self.content = content
        self.timestamp = timestamp
        self.channel = channel
        self.type = type

    def edit(self, content):
        self.content = content

class ClientMessageType(Enum):
    whois = 1
    help = 2
    mention = 3
    newdms = 4
    nickchange = 5
    serverunavailable = 6
    serveravailable = 7
    status = 8
    away = 9
    commandoutput = 10
    commanderror = 11
    commandnotice = 12
