fix(backend): add unlisted param to patch member
This commit is contained in:
parent
c0bb76580d
commit
c237aa8827
1 changed files with 4 additions and 0 deletions
|
@ -164,6 +164,9 @@ public class MembersController(
|
|||
member.Links = req.Links ?? [];
|
||||
}
|
||||
|
||||
if (req.HasProperty(nameof(req.Unlisted)))
|
||||
member.Unlisted = req.Unlisted ?? false;
|
||||
|
||||
if (req.Names != null)
|
||||
{
|
||||
errors.AddRange(
|
||||
|
@ -244,6 +247,7 @@ public class MembersController(
|
|||
public Pronoun[]? Pronouns { get; init; }
|
||||
public Field[]? Fields { get; init; }
|
||||
public Snowflake[]? Flags { get; init; }
|
||||
public bool? Unlisted { get; init; }
|
||||
}
|
||||
|
||||
[HttpDelete("/api/v2/users/@me/members/{memberRef}")]
|
||||
|
|
Loading…
Reference in a new issue