From 3b14d0b0d80f2027124d94c5313b8994579e4150 Mon Sep 17 00:00:00 2001 From: spiral Date: Sat, 27 Nov 2021 10:50:01 -0500 Subject: [PATCH] fix: use correct prop for ctx.Parameters --- PluralKit.Bot/CommandSystem/Context/Context.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/PluralKit.Bot/CommandSystem/Context/Context.cs b/PluralKit.Bot/CommandSystem/Context/Context.cs index 0b21719d..30e135ec 100644 --- a/PluralKit.Bot/CommandSystem/Context/Context.cs +++ b/PluralKit.Bot/CommandSystem/Context/Context.cs @@ -21,8 +21,6 @@ public class Context { private readonly ILifetimeScope _provider; - private readonly Parameters _parameters; - private readonly IMetrics _metrics; private readonly CommandMessageService _commandMessageService; @@ -43,7 +41,7 @@ public class Context _metrics = provider.Resolve(); _provider = provider; _commandMessageService = provider.Resolve(); - _parameters = new Parameters(message.Content?.Substring(commandParseOffset)); + Parameters = new Parameters(message.Content?.Substring(commandParseOffset)); Rest = provider.Resolve(); Cluster = provider.Resolve(); }