Procházet zdrojové kódy

Cleanup before mailing.

Chris Rhodes před 9 roky
rodič
revize
b2ef55ae9c
2 změnil soubory, kde provedl 3 přidání a 4 odebrání
  1. 3 3
      structs.go
  2. 0 1
      wsapi.go

+ 3 - 3
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
 }

+ 0 - 1
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)