mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-08 06:47:56 +00:00
bot: add color change command
This commit is contained in:
parent
12e14c420c
commit
cf2598baa5
4 changed files with 34 additions and 7 deletions
|
|
@ -30,7 +30,7 @@ namespace PluralKit.Bot.Commands
|
|||
public async Task New([Remainder] string systemName = null)
|
||||
{
|
||||
if (ContextEntity != null) throw Errors.NotOwnSystemError;
|
||||
if (Context.SenderSystem != null) throw Errors.NoSystemError;
|
||||
if (Context.SenderSystem != null) throw Errors.ExistingSystemError;
|
||||
|
||||
var system = await Systems.Create(systemName);
|
||||
await Systems.Link(system, Context.User.Id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue