about summary refs log tree commit diff
path: root/MatrixAntiDmSpam/InviteStore.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MatrixAntiDmSpam/InviteStore.cs')
-rw-r--r--MatrixAntiDmSpam/InviteStore.cs15
1 files changed, 0 insertions, 15 deletions
diff --git a/MatrixAntiDmSpam/InviteStore.cs b/MatrixAntiDmSpam/InviteStore.cs
deleted file mode 100644

index d6e8d49..0000000 --- a/MatrixAntiDmSpam/InviteStore.cs +++ /dev/null
@@ -1,15 +0,0 @@ -using LibMatrix.Utilities.Bot.Services; - -namespace MatrixAntiDmSpam; - -public class InviteStore { - - - public async Task AddInviteAsync(InviteHandlerHostedService.InviteEventArgs invite) { - foreach (var handler in OnInviteReceived) { - await handler(invite); - } - } - - public List<Func<InviteHandlerHostedService.InviteEventArgs, Task>> OnInviteReceived { get; set; } = []; -} \ No newline at end of file