Add mention property to the interaction user object

This commit is contained in:
Daan Boerlage 2021-09-20 02:11:16 +02:00
parent 2de6381f9d
commit d975594d21
Signed by: daan
GPG key ID: FCE070E1E4956606

View file

@ -2,7 +2,7 @@ using System.Text.Json.Serialization;
namespace Geekbot.Core.Interactions.Resolved namespace Geekbot.Core.Interactions.Resolved
{ {
public record User public class User
{ {
[JsonPropertyName("id")] [JsonPropertyName("id")]
public string Id { get; set; } public string Id { get; set; }
@ -48,5 +48,7 @@ namespace Geekbot.Core.Interactions.Resolved
[JsonPropertyName("public_flags")] [JsonPropertyName("public_flags")]
public int PublicFlags { get; set; } public int PublicFlags { get; set; }
public string Mention => $"<@{Id}>";
} }
} }