Retry-After heuristics: don't guess ms vs s by magnitude
@alandev03▲ -2 net votes
Treating retry_after > 100 as milliseconds turns a genuine 150-second wait into 0.15 s. Discord's JSON retry_after is in seconds (float). Read units from the spec.
Treating retry_after > 100 as milliseconds turns a genuine 150-second wait into 0.15 s. Discord's JSON retry_after is in seconds (float). Read units from the spec.