PluralKit/PluralKit.Core/Models/MemberGuildSettings.cs

26 lines
598 B
C#
Raw Normal View History

2021-10-13 01:02:34 -04:00
using Newtonsoft.Json.Linq;
2021-08-27 11:03:47 -04:00
#nullable enable
namespace PluralKit.Core
{
public class MemberGuildSettings
{
2020-06-14 21:37:04 +02:00
public MemberId Member { get; }
public ulong Guild { get; }
public string? DisplayName { get; }
public string? AvatarUrl { get; }
}
2021-10-13 01:02:34 -04:00
public static class MemberGuildExt
{
public static JObject ToJson(this MemberGuildSettings settings)
{
var o = new JObject();
o.Add("display_name", settings.DisplayName);
o.Add("avatar_url", settings.AvatarUrl);
return o;
}
}
}