Migrate guild objects to the patch system
This commit is contained in:
13
PluralKit.Core/Models/Patch/MemberGuildPatch.cs
Normal file
13
PluralKit.Core/Models/Patch/MemberGuildPatch.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
#nullable enable
|
||||
namespace PluralKit.Core
|
||||
{
|
||||
public class MemberGuildPatch: PatchObject
|
||||
{
|
||||
public Partial<string?> DisplayName { get; set; }
|
||||
public Partial<string?> AvatarUrl { get; set; }
|
||||
|
||||
public override UpdateQueryBuilder Apply(UpdateQueryBuilder b) => b
|
||||
.With("display_name", DisplayName)
|
||||
.With("avatar_url", AvatarUrl);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user