diff options
author | Rory& <root@rory.gay> | 2024-06-17 00:56:37 +0200 |
---|---|---|
committer | Rory& <root@rory.gay> | 2024-06-17 00:56:37 +0200 |
commit | e4fbb948bce90fdfe757c70081c6dbec84b70244 (patch) | |
tree | 94ba77127e34eb81d00a36641fccab93c8cced76 | |
parent | Changes (diff) | |
download | ModerationBot-github/master.tar.xz |
Fix event fetch call HEAD github/master master
-rw-r--r-- | Commands/BanMediaCommand.cs | 2 |
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) { |