pycord
pycord copied to clipboard
Finish event handling
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.
I'll work on this @verixx