pycord icon indicating copy to clipboard operation
pycord copied to clipboard

Finish event handling

Open kyb3r opened this issue 7 years ago • 1 comments

I need help with finishing off event handling. It'd be greatly appreciated if you pitched in. Example:

    async def handle_message_create(self, data):
        message = Message(self.client, data)
        self.client.messages.add(message)
        await self.client.emit('message', message)

So the basic format is to make a function f'handle_{event}' and make an object based off the data received. After that just make changes to the client's storage and emit the event. All this happens in the EventHandler class.

kyb3r avatar Sep 21 '17 06:09 kyb3r

I'll work on this @verixx

jorivanee avatar Sep 30 '17 15:09 jorivanee