Переглянути джерело

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.