feat(apiv2): guild endpoints

This commit is contained in:
spiral 2021-10-13 01:02:34 -04:00
parent eb05cbf76c
commit f602f22a3d
No known key found for this signature in database
GPG key ID: A6059F0CA0E1BD31
7 changed files with 242 additions and 33 deletions

View file

@ -1,3 +1,5 @@
using Newtonsoft.Json.Linq;
#nullable enable
namespace PluralKit.Core
{
@ -8,4 +10,17 @@ namespace PluralKit.Core
public string? DisplayName { get; }
public string? AvatarUrl { get; }
}
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;
}
}
}