diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-10-06 18:29:15 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-10-06 18:29:15 +0200 |
commit | 5f268b152236a7c5f30511eedc13b8920b26ccc9 (patch) | |
tree | 181d6218234f6f37d1f18afeccc4cec9907dbda0 /Bot/Commands/CreateSystemCommand.cs | |
parent | Unit tests, small refactors (diff) | |
download | PluralContactBotPoC-5f268b152236a7c5f30511eedc13b8920b26ccc9.tar.xz |
Small refactors
Diffstat (limited to 'Bot/Commands/CreateSystemCommand.cs')
-rw-r--r-- | Bot/Commands/CreateSystemCommand.cs | 2 |
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) { |