Nullify ChatEmbedField

This commit is contained in:
Jordan Dominion
2023-12-23 10:12:31 -05:00
parent b5b408fc1e
commit 4bfc321e45
2 changed files with 4 additions and 6 deletions
@@ -995,7 +995,7 @@ namespace Tgstation.Server.Host.Components.Chat.Providers
if (invalid)
continue;
fields.Add(new EmbedField(field.Name, field.Value)
fields.Add(new EmbedField(field.Name!, field.Value!)
{
IsInline = field.IsInline ?? default(Optional<bool>),
});
@@ -1,6 +1,4 @@
#nullable disable
namespace Tgstation.Server.Host.Components.Interop
namespace Tgstation.Server.Host.Components.Interop
{
/// <summary>
/// Represents a field in a <see cref="ChatEmbed"/>.
@@ -10,12 +8,12 @@ namespace Tgstation.Server.Host.Components.Interop
/// <summary>
/// Gets the name of the field.
/// </summary>
public string Name { get; set; }
public string? Name { get; set; }
/// <summary>
/// Gets the value of the field.
/// </summary>
public string Value { get; set; }
public string? Value { get; set; }
/// <summary>
/// Gets a value indicating whether the field should display inline.