mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-07 14:27:54 +00:00
Add group name/description/list commands
This commit is contained in:
parent
253ae43c7f
commit
6c5cb8cea7
7 changed files with 152 additions and 6 deletions
|
|
@ -25,6 +25,13 @@ namespace PluralKit.Bot
|
|||
return ctx;
|
||||
}
|
||||
|
||||
public static Context CheckOwnGroup(this Context ctx, PKGroup group)
|
||||
{
|
||||
if (group.System != ctx.System?.Id)
|
||||
throw Errors.NotOwnMemberError;
|
||||
return ctx;
|
||||
}
|
||||
|
||||
public static Context CheckSystem(this Context ctx)
|
||||
{
|
||||
if (ctx.System == null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue