mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-12 00:30:11 +00:00
Add group member list command
This commit is contained in:
parent
0f4c40b344
commit
8a28d836c7
4 changed files with 35 additions and 3 deletions
|
|
@ -16,6 +16,7 @@ namespace PluralKit.Bot
|
|||
public bool Reverse { get; set; }
|
||||
|
||||
public PrivacyLevel? PrivacyFilter { get; set; } = PrivacyLevel.Public;
|
||||
public GroupId? GroupFilter { get; set; }
|
||||
public string? Search { get; set; }
|
||||
public bool SearchDescription { get; set; }
|
||||
|
||||
|
|
@ -55,7 +56,7 @@ namespace PluralKit.Bot
|
|||
PrivacyLevel.Public => "", // (default, no extra line needed)
|
||||
_ => new ArgumentOutOfRangeException($"Couldn't find readable string for privacy filter {PrivacyFilter}")
|
||||
});
|
||||
|
||||
|
||||
return str.ToString();
|
||||
}
|
||||
|
||||
|
|
@ -63,6 +64,7 @@ namespace PluralKit.Bot
|
|||
new DatabaseViewsExt.MemberListQueryOptions
|
||||
{
|
||||
PrivacyFilter = PrivacyFilter,
|
||||
GroupFilter = GroupFilter,
|
||||
Search = Search,
|
||||
SearchDescription = SearchDescription
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue