fix: rename property to match config section

This commit is contained in:
Oliver Booth 2023-08-26 14:16:24 +01:00
parent 2d917bd3af
commit a6584594c9
Signed by: oliverbooth
GPG Key ID: B89D139977693FED
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ public sealed class VirtualParadiseConfiguration
/// Gets or sets the chat configuration. /// Gets or sets the chat configuration.
/// </summary> /// </summary>
/// <value>The chat configuration.</value> /// <value>The chat configuration.</value>
public ChatConfiguration ChatConfiguration { get; } = new(); public ChatConfiguration Chat { get; } = new();
/// <summary> /// <summary>
/// Gets or sets the password with which to log in to Virtual Paradise. /// Gets or sets the password with which to log in to Virtual Paradise.

View File

@ -40,7 +40,7 @@ internal sealed class VirtualParadiseMessageService : BackgroundService, IVirtua
/// <inheritdoc /> /// <inheritdoc />
public Task SendMessageAsync(RelayedMessage message) public Task SendMessageAsync(RelayedMessage message)
{ {
ChatConfiguration configuration = _configurationService.VirtualParadiseConfiguration.ChatConfiguration; ChatConfiguration configuration = _configurationService.VirtualParadiseConfiguration.Chat;
Color color = Color.FromArgb((int)configuration.Color); Color color = Color.FromArgb((int)configuration.Color);
FontStyle style = configuration.Style; FontStyle style = configuration.Style;