소스 검색

ShouldReconnectOnError and Compress are defaulted to true with New()

Bruce Marriner 9 년 전
부모
커밋
94b6199051
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  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.