Fix HttpTimeout setting never applying
Created by: uwx
Summary
Fixes the HttpTimeout
setting in DiscordConfiguration
never having any effect.
Details
The DiscordConfiguration
object passed to the DiscordClient constructor is cloned, and the RestClient
constructor that applies the timeout looks for the property in the cloned object, but the clone constructor does not assign the HttpTimeout
property, so the default of 10 is always used.
Changes proposed
- Assign
HttpTimeout
inpublic DiscordConfiguration(DiscordConfiguration)
constructor
Notes
This is all @RedworkDE's fault. SHAME.