PluralKit/PluralKit.Core/Models/Patch/GroupPatch.cs

13 lines
365 B
C#
Raw Normal View History

2020-06-29 21:51:12 +00:00
#nullable enable
namespace PluralKit.Core
{
public class GroupPatch: PatchObject
{
public Partial<string> Name { get; set; }
public Partial<string?> Description { get; set; }
public override UpdateQueryBuilder Apply(UpdateQueryBuilder b) => b
.With("name", Name)
.With("description", Description);
}
}