Browse Source

ShouldReconnectOnError and Compress are defaulted to true with New()

Bruce Marriner 9 years ago
parent
commit
94b6199051
1 changed files with 4 additions and 2 deletions
  1. 4 2
      discord.go

+ 4 - 2
discord.go

@@ -33,8 +33,10 @@ func New(args ...interface{}) (s *Session, err error) {
 
 	// Create an empty Session interface.
 	s = &Session{
-		State:        NewState(),
-		StateEnabled: true,
+		State:                  NewState(),
+		StateEnabled:           true,
+		Compress:               true,
+		ShouldReconnectOnError: true,
 	}
 
 	// If no arguments are passed return the empty Session interface.