about summary refs log tree commit diff
path: root/MiniUtils/Commands/IgnoreCommand.cs
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-05-18 22:52:39 +0200
committerRory& <root@rory.gay>2025-05-18 22:52:39 +0200
commit82e5660b63ea6466e22f855fe524b288b62da7f9 (patch)
treeb9aa304da0002c2b85d4063a84f4d6e59e8f9008 /MiniUtils/Commands/IgnoreCommand.cs
parentAdd more commands (diff)
downloadMiniUtils-master.tar.xz
More stuff HEAD master
Diffstat (limited to 'MiniUtils/Commands/IgnoreCommand.cs')
-rw-r--r--MiniUtils/Commands/IgnoreCommand.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/MiniUtils/Commands/IgnoreCommand.cs b/MiniUtils/Commands/IgnoreCommand.cs

index 4b3fe86..4206b72 100644 --- a/MiniUtils/Commands/IgnoreCommand.cs +++ b/MiniUtils/Commands/IgnoreCommand.cs
@@ -51,6 +51,10 @@ public class IgnoreCommand(IgnoreListManager ignoreListManager) : ICommand { var count = await ignoreListManager.MoveList(true, itemsToEnable); await ctx.Room.SendReactionAsync(ctx.MessageEvent.EventId!, $"{Emojis.RightArrowWithTail} {count}"); } + else if (ctx.Args is ["add", .. var itemsToAdd]) { + var count = await ignoreListManager.AddList(itemsToAdd); + await ctx.Room.SendReactionAsync(ctx.MessageEvent.EventId!, $"{Emojis.RightArrowWithTail} {count}"); + } } private async Task Summarize(CommandContext ctx, IgnoredUserListEventContentWithDisabled ignoreList) {