瀏覽代碼

Set default MaxRestRetries to 3

jonas747 8 年之前
父節點
當前提交
ebb910f3ac
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      discord.go

+ 1 - 0
discord.go

@@ -42,6 +42,7 @@ func New(args ...interface{}) (s *Session, err error) {
 		ShouldReconnectOnError: true,
 		ShardID:                0,
 		ShardCount:             1,
+		MaxRestRetries:         3,
 	}
 
 	// If no arguments are passed return the empty Session interface.