mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-14 01:30:13 +00:00
feat(bot): -with-birthday flag on member lists
This commit is contained in:
parent
47449ecbc7
commit
44fe3d538a
2 changed files with 9 additions and 0 deletions
|
|
@ -40,6 +40,7 @@ public class ListOptions
|
|||
public bool IncludeAvatar { get; set; }
|
||||
public bool IncludePronouns { get; set; }
|
||||
public bool IncludeDisplayName { get; set; }
|
||||
public bool IncludeBirthday { get; set; }
|
||||
|
||||
public string CreateFilterString()
|
||||
{
|
||||
|
|
@ -174,6 +175,7 @@ public static class ListOptionsExt
|
|||
opts.IncludeAvatar,
|
||||
opts.IncludePronouns,
|
||||
opts.IncludeDisplayName,
|
||||
opts.IncludeBirthday,
|
||||
}.Sum(x => Convert.ToInt32(x)) > 1;
|
||||
|
||||
if (hasMultipleIncluded)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue