Преглед изворни кода

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.