From 5f268b152236a7c5f30511eedc13b8920b26ccc9 Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Fri, 6 Oct 2023 18:29:15 +0200 Subject: Small refactors --- Bot/Commands/CreateSystemCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Bot/Commands/CreateSystemCommand.cs') diff --git a/Bot/Commands/CreateSystemCommand.cs b/Bot/Commands/CreateSystemCommand.cs index 55624a8..4a7d646 100644 --- a/Bot/Commands/CreateSystemCommand.cs +++ b/Bot/Commands/CreateSystemCommand.cs @@ -25,7 +25,7 @@ public class CreateSystemCommand(IServiceProvider services, HomeserverProviderSe var sysName = ctx.Args[0]; try { try { - await ctx.Homeserver.GetAccountData("gay.rory.plural_contact_bot.system_data"); + await ctx.Homeserver.GetAccountDataAsync("gay.rory.plural_contact_bot.system_data"); await ctx.Reply(MessageFormatter.FormatError($"System {sysName} already exists!")); } catch (MatrixException e) { -- cgit 1.5.1