From b2ef55ae9cba305cbb93edf171d8d4a5a9ed6cdb Mon Sep 17 00:00:00 2001 From: Chris Rhodes Date: Fri, 1 Jan 2016 22:56:32 -0800 Subject: [PATCH] Cleanup before mailing. --- structs.go | 6 +++--- wsapi.go | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/structs.go b/structs.go index 4d78151..b716624 100644 --- a/structs.go +++ b/structs.go @@ -356,9 +356,9 @@ type GuildBan struct { GuildID string `json:"guild_id"` } -// A State contains the current known state, as discord sends this in a -// READY blob, it seems reasonable to simply use that message type as the -// data store. +// A State contains the current known state. +// As discord sends this in a READY blob, it seems reasonable to simply +// use that struct as the data store. type State struct { Ready } diff --git a/wsapi.go b/wsapi.go index 3a7374b..7b40eda 100644 --- a/wsapi.go +++ b/wsapi.go @@ -238,7 +238,6 @@ func (s *Session) event(messageType int, message []byte) (err error) { case "CHANNEL_CREATE": var st Channel if err = unmarshalEvent(e, &st); err == nil { - fmt.Println("channel create", st) s.State.AddChannel(&st) if s.OnChannelCreate != nil { s.OnChannelCreate(s, st)