This reverts commit ba78e0c1f0.
This commit is contained in:
@@ -1,26 +0,0 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Discord.API;
|
||||
|
||||
internal class TextDisplayComponent : IMessageComponent
|
||||
{
|
||||
[JsonProperty("type")]
|
||||
public ComponentType Type { get; set; }
|
||||
|
||||
[JsonProperty("id")]
|
||||
public Optional<int> Id { get; set; }
|
||||
|
||||
[JsonProperty("content")]
|
||||
public string Content { get; set; }
|
||||
|
||||
public TextDisplayComponent() { }
|
||||
|
||||
public TextDisplayComponent(Discord.TextDisplayComponent component)
|
||||
{
|
||||
Type = component.Type;
|
||||
Id = component.Id ?? Optional<int>.Unspecified;
|
||||
Content = component.Content;
|
||||
}
|
||||
|
||||
int? IMessageComponent.Id => Id.ToNullable();
|
||||
}
|
||||
Reference in New Issue
Block a user