Explorar o código

ShouldReconnectOnError and Compress are defaulted to true with New()

Bruce Marriner %!s(int64=9) %!d(string=hai) anos
pai
achega
94b6199051
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  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.