From 82c2b9e840cd656973b5a2643dbf759d13c79390 Mon Sep 17 00:00:00 2001 From: diamondburned Date: Sat, 25 Dec 2021 15:17:20 -0800 Subject: [PATCH] gateway: Add Event = ws.Event --- gateway/events.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gateway/events.go b/gateway/events.go index 9107857..d63debc 100644 --- a/gateway/events.go +++ b/gateway/events.go @@ -10,6 +10,10 @@ import ( //go:generate go run ../utils/cmd/genevent -o event_methods.go +// Event is a type alias for ws.Event. It exists for convenience and describes +// the same event as any other ws.Event. +type Event ws.Event + // Rule: VOICE_STATE_UPDATE -> VoiceStateUpdateEvent. // Ready is too big, so it's moved to ready.go.