From 189aea422dca9d3bcad51e864620034e811e6a99 Mon Sep 17 00:00:00 2001 From: RandomChars <random@chars.jp> Date: Sun, 1 Aug 2021 13:58:26 +0900 Subject: [PATCH] workaround --- handler.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/handler.go b/handler.go index d896a86..3ba98ec 100644 --- a/handler.go +++ b/handler.go @@ -62,6 +62,11 @@ func handleChatInitiate(context *multiplexer.Context) { return } + // Workaround for weird bug where the event has no guild ID + if member.GuildID == "" { + member.GuildID = event.GuildID + } + // Create new instance instance := newInstance(member) if instance == nil { -- GitLab