From 30a0868789466012bab869af4300aef5a9cac108 Mon Sep 17 00:00:00 2001 From: Rory& Date: Thu, 30 May 2024 09:46:43 +0000 Subject: Rename legacy event types --- Utilities/LibMatrix.Utilities.Bot/Commands/AliassesCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Utilities/LibMatrix.Utilities.Bot/Commands/AliassesCommand.cs') diff --git a/Utilities/LibMatrix.Utilities.Bot/Commands/AliassesCommand.cs b/Utilities/LibMatrix.Utilities.Bot/Commands/AliassesCommand.cs index 68fc884..aaa61ed 100644 --- a/Utilities/LibMatrix.Utilities.Bot/Commands/AliassesCommand.cs +++ b/Utilities/LibMatrix.Utilities.Bot/Commands/AliassesCommand.cs @@ -19,7 +19,7 @@ public class AliassesCommand(IServiceProvider services) : ICommand { var commands = services.GetServices().Where(x => !x.Unlisted).ToList(); foreach (var command in commands) sb.AppendLine($"- {command.Name}: {command.Description}"); - await ctx.Room.SendMessageEventAsync(new RoomMessageEventContent("m.notice", sb.ToString())); + await ctx.Room.SendMessageEventAsync(new RoomMessageLegacyEventContent("m.notice", sb.ToString())); var msb = new MessageBuilder("m.notice"); msb.WithHtmlTag("table", tb => { -- cgit 1.4.1