2021-08-27 11:03:47 -04:00
|
|
|
#nullable enable
|
2021-09-29 21:51:38 -04:00
|
|
|
|
|
|
|
using SqlKata;
|
|
|
|
|
2020-06-29 15:20:28 +02:00
|
|
|
namespace PluralKit.Core
|
|
|
|
{
|
|
|
|
public class MemberGuildPatch: PatchObject
|
|
|
|
{
|
|
|
|
public Partial<string?> DisplayName { get; set; }
|
|
|
|
public Partial<string?> AvatarUrl { get; set; }
|
|
|
|
|
2021-09-29 21:51:38 -04:00
|
|
|
public override Query Apply(Query q) => q.ApplyPatch(wrapper => wrapper
|
2020-06-29 15:20:28 +02:00
|
|
|
.With("display_name", DisplayName)
|
2021-09-29 21:51:38 -04:00
|
|
|
.With("avatar_url", AvatarUrl)
|
|
|
|
);
|
2020-06-29 15:20:28 +02:00
|
|
|
}
|
|
|
|
}
|