diff --git a/litecord/blueprints/users.py b/litecord/blueprints/users.py index 74e72cb..ae150be 100644 --- a/litecord/blueprints/users.py +++ b/litecord/blueprints/users.py @@ -218,6 +218,11 @@ async def put_note(target_id: int): WHERE user_id = $1 AND target_id = $2 """, user_id, target_id, note) + await app.dispatcher.dispatch_user(user_id, 'USER_NOTE_UPDATE', { + 'id': str(target_id), + 'note': note, + }) + return '', 204 diff --git a/litecord/gateway/websocket.py b/litecord/gateway/websocket.py index 7e9eb77..0081fc0 100644 --- a/litecord/gateway/websocket.py +++ b/litecord/gateway/websocket.py @@ -747,6 +747,7 @@ class GatewayWebsocket: try: handler = getattr(self, f'handle_{op_code}') except AttributeError: + log.warning('Payload with bad op: {}', pprint.pformat(payload)) raise UnknownOPCode(f'Bad OP code: {op_code}') await handler(payload)