mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-08 06:47:56 +00:00
Refactor system/member avatar code
This commit is contained in:
parent
467b95b1b1
commit
8d01b580e2
6 changed files with 177 additions and 102 deletions
|
|
@ -60,6 +60,9 @@ namespace PluralKit.Bot
|
|||
return potentialMatches.Any(potentialMatch => flags.Contains(potentialMatch));
|
||||
}
|
||||
|
||||
public static bool MatchClear(this Context ctx) =>
|
||||
ctx.Match("clear", "remove", "reset") || ctx.MatchFlag("c", "clear");
|
||||
|
||||
public static async Task<List<PKMember>> ParseMemberList(this Context ctx, SystemId? restrictToSystem)
|
||||
{
|
||||
var members = new List<PKMember>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue