Преглед на файлове

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.