瀏覽代碼

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.