PluralKit/PluralKit.Core/Models/SystemGuildSettings.cs

26 lines
590 B
C#
Raw Normal View History

using Newtonsoft.Json.Linq;
2021-10-13 05:02:34 +00:00
namespace PluralKit.Core;
public class SystemGuildSettings
{
public ulong Guild { get; }
public SystemId System { get; }
public bool ProxyEnabled { get; } = true;
public string? Tag { get; }
public bool TagEnabled { get; }
}
public static class SystemGuildExt
{
public static JObject ToJson(this SystemGuildSettings settings)
{
var o = new JObject();
o.Add("proxying_enabled", settings.ProxyEnabled);
o.Add("tag", settings.Tag);
o.Add("tag_enabled", settings.TagEnabled);
2021-08-27 15:03:47 +00:00
return o;
}
}