diff options
Diffstat (limited to 'src/gateway/opcodes/PresenceUpdate.ts')
-rw-r--r-- | src/gateway/opcodes/PresenceUpdate.ts | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/gateway/opcodes/PresenceUpdate.ts b/src/gateway/opcodes/PresenceUpdate.ts index 03736263..24a3461b 100644 --- a/src/gateway/opcodes/PresenceUpdate.ts +++ b/src/gateway/opcodes/PresenceUpdate.ts @@ -17,23 +17,14 @@ */ import { WebSocket, Payload } from "@spacebar/gateway"; -import { - emitEvent, - PresenceUpdateEvent, - Session, - User, - ActivitySchema, -} from "@spacebar/util"; +import { emitEvent, PresenceUpdateEvent, Session, User, ActivitySchema } from "@spacebar/util"; import { check } from "./instanceOf"; export async function onPresenceUpdate(this: WebSocket, { d }: Payload) { check.call(this, ActivitySchema, d); const presence = d as ActivitySchema; - await Session.update( - { session_id: this.session_id }, - { status: presence.status, activities: presence.activities }, - ); + await Session.update({ session_id: this.session_id }, { status: presence.status, activities: presence.activities }); await emitEvent({ event: "PRESENCE_UPDATE", |