Skip to content

Fix HttpTimeout setting never applying

Mateusz Brawański requested to merge github/fork/uwx/patch-71 into master

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 in public DiscordConfiguration(DiscordConfiguration) constructor

Notes

This is all @RedworkDE's fault. SHAME.

Merge request reports

Loading