about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-06-17 00:56:37 +0200
committerRory& <root@rory.gay>2024-06-17 00:56:37 +0200
commite4fbb948bce90fdfe757c70081c6dbec84b70244 (patch)
tree94ba77127e34eb81d00a36641fccab93c8cced76
parentChanges (diff)
downloadModerationBot-master.tar.xz
Fix event fetch call HEAD github/master master
Diffstat (limited to '')
-rw-r--r--Commands/BanMediaCommand.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Commands/BanMediaCommand.cs b/Commands/BanMediaCommand.cs
index ca9f12c..07c9858 100644
--- a/Commands/BanMediaCommand.cs
+++ b/Commands/BanMediaCommand.cs
@@ -45,7 +45,7 @@ public class BanMediaCommand(HomeserverResolverService hsResolver, PolicyEngine
                         messageType: "m.text"));
 
                 //get replied message
-                var repliedMessage = await ctx.Room.GetEventAsync<StateEventResponse>(messageContent.RelatesTo!.InReplyTo!.EventId);
+                var repliedMessage = await ctx.Room.GetEventAsync(messageContent.RelatesTo!.InReplyTo!.EventId);
 
                 //check if recommendation is in list
                 if (ctx.Args.Length < 2) {