about summary refs log tree commit diff
path: root/Bot/Commands/CreateSystemCommand.cs
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-10-06 18:29:15 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-10-06 18:29:15 +0200
commit5f268b152236a7c5f30511eedc13b8920b26ccc9 (patch)
tree181d6218234f6f37d1f18afeccc4cec9907dbda0 /Bot/Commands/CreateSystemCommand.cs
parentUnit tests, small refactors (diff)
downloadPluralContactBotPoC-5f268b152236a7c5f30511eedc13b8920b26ccc9.tar.xz
Small refactors
Diffstat (limited to 'Bot/Commands/CreateSystemCommand.cs')
-rw-r--r--Bot/Commands/CreateSystemCommand.cs2
1 files changed, 1 insertions, 1 deletions
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<BotData>("gay.rory.plural_contact_bot.system_data");
+                await ctx.Homeserver.GetAccountDataAsync<BotData>("gay.rory.plural_contact_bot.system_data");
                 await ctx.Reply(MessageFormatter.FormatError($"System {sysName} already exists!"));
             }
             catch (MatrixException e) {