Skip to content

Added new DefaultDateTime to DiscordConfiguration.

Mateusz Brawański requested to merge github/fork/BloodfallenTear/master into master

Created by: BloodfallenTear

Summary

Added new DiscordConfiguration option DefaultDateTime.

Details

Changed all of the DateTime.Now instances in the code to the new DefaultDateTime config option. By default DefaultDateTime = DateTime.Now but can be changed to whatever the user prefers (like DateTime.UtcNow).

Changed all of the relevant code in all files containing DateTime.Now or DateTimeOffset.Now (only if needed, f.e in DSharpPlus/DiscordClient.cs) to the DefaultDateTime config option.

Replaced multiple instances of this.DebugLogger to this.Client.DebugLogger (or alike, f.e this._client.DebugLogger or this.Discord.DebugLogger).

Also replaced the private DebugLogger Logger field in file DSharpPlus.Lavalink/LavalinkRest.cs with a private DiscordClient Client field to get access to the DiscordClient's DiscordConfiguration, and made the appropriate changes to hopefully not break any logging.

Merge request reports

Loading