mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-23 21:16:52 +01:00
Nullify ChatEmbedField
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user