From 3558ba25896876b0c546f4c2decbb0671187745b Mon Sep 17 00:00:00 2001 From: Rory& Date: Fri, 14 Nov 2025 10:48:26 +0100 Subject: StateEvent -> MatrixEvent --- .../LibMatrix.Utilities.Bot/Services/CommandListenerHostedService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Utilities/LibMatrix.Utilities.Bot/Services') diff --git a/Utilities/LibMatrix.Utilities.Bot/Services/CommandListenerHostedService.cs b/Utilities/LibMatrix.Utilities.Bot/Services/CommandListenerHostedService.cs index 7a5f408..5b697de 100644 --- a/Utilities/LibMatrix.Utilities.Bot/Services/CommandListenerHostedService.cs +++ b/Utilities/LibMatrix.Utilities.Bot/Services/CommandListenerHostedService.cs @@ -119,7 +119,7 @@ public class CommandListenerHostedService( await _cts.CancelAsync(); } - private async Task GetUsedPrefix(StateEventResponse evt) { + private async Task GetUsedPrefix(MatrixEventResponse evt) { var messageContent = evt.TypedContent as RoomMessageEventContent; var message = messageContent!.BodyWithoutReplyFallback; var prefix = config.Prefixes.OrderByDescending(x => x.Length).FirstOrDefault(message.StartsWith); @@ -139,7 +139,7 @@ public class CommandListenerHostedService( return prefix; } - private async Task InvokeCommand(StateEventResponse evt, string usedPrefix) { + private async Task InvokeCommand(MatrixEventResponse evt, string usedPrefix) { var message = evt.TypedContent as RoomMessageEventContent; var room = hs.GetRoom(evt.RoomId!); -- cgit 1.5.1