Clean up some warnings (#6088)

* Clean up some warnings

* Remove nullable enable

Co-authored-by: ShadowCommander <10494922+ShadowCommander@users.noreply.github.com>

Co-authored-by: ShadowCommander <10494922+ShadowCommander@users.noreply.github.com>
This commit is contained in:
wrexbe
2022-01-09 20:10:36 -08:00
committed by GitHub
parent 03c56bf23e
commit 5ceb2372bf
37 changed files with 126 additions and 119 deletions

View File

@@ -1,4 +1,3 @@
#nullable enable
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
@@ -22,6 +21,7 @@ using Robust.Shared.IoC;
using Robust.Shared.Log;
using Robust.Shared.Network;
using Robust.Shared.Utility;
using System.Text.Json.Serialization;
namespace Content.Server.Administration
{
@@ -94,8 +94,8 @@ namespace Content.Server.Administration
var payload = new WebhookPayload()
{
username = oldMessage.username,
content = oldMessage.content
Username = oldMessage.username,
Content = oldMessage.content
};
if (oldMessage.id == string.Empty)
@@ -242,14 +242,14 @@ namespace Content.Server.Administration
private struct WebhookPayload
{
// ReSharper disable once InconsistentNaming
public string username { get; set; } = "";
[JsonPropertyName("username")]
public string Username { get; set; } = "";
// ReSharper disable once InconsistentNaming
public string content { get; set; } = "";
[JsonPropertyName("content")]
public string Content { get; set; } = "";
// ReSharper disable once InconsistentNaming
public Dictionary<string, string[]> allowed_mentions { get; set; } =
[JsonPropertyName("allowed_mentions")]
public Dictionary<string, string[]> AllowedMentions { get; set; } =
new()
{
{ "parse", Array.Empty<string>() }