Merge pull request #233 from dev-kittens/feature/delete-bot-responses

Allow deleting bot responses with  reaction
This commit is contained in:
Astrid
2020-10-23 11:09:41 +02:00
committed by GitHub
7 changed files with 83 additions and 7 deletions

View File

@@ -189,9 +189,9 @@ namespace PluralKit.Bot
if (ctx.Match("random", "r"))
return ctx.Execute<Member>(MemberRandom, m => m.MemberRandom(ctx));
ctx.Reply(
// remove compiler warning
return ctx.Reply(
$"{Emojis.Error} Unknown command {ctx.PeekArgument().AsCode()}. For a list of possible commands, see <https://pluralkit.me/commands>.");
return Task.CompletedTask;
}
private async Task HandleSystemCommand(Context ctx)