From 935c9660e8cce9d286b1a5211d9bed721f8eb823 Mon Sep 17 00:00:00 2001 From: Ske Date: Fri, 28 Aug 2020 11:37:53 +0200 Subject: [PATCH] Support destructuring of proxy tag object --- PluralKit.Core/Logging/PatchObjectDestructuring.cs | 4 ++-- PluralKit.Core/Modules.cs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/PluralKit.Core/Logging/PatchObjectDestructuring.cs b/PluralKit.Core/Logging/PatchObjectDestructuring.cs index 8696e0a7..7436e933 100644 --- a/PluralKit.Core/Logging/PatchObjectDestructuring.cs +++ b/PluralKit.Core/Logging/PatchObjectDestructuring.cs @@ -18,9 +18,9 @@ namespace PluralKit.Core { var propValue = props.GetValue(po); if (propValue is IPartial p && p.IsPresent) - propList.Add(new LogEventProperty(props.Name, factory.CreatePropertyValue(p.RawValue))); + propList.Add(new LogEventProperty(props.Name, factory.CreatePropertyValue(p.RawValue, true))); else if (!(propValue is IPartial)) - propList.Add(new LogEventProperty(props.Name, factory.CreatePropertyValue(propValue))); + propList.Add(new LogEventProperty(props.Name, factory.CreatePropertyValue(propValue, true))); } result = new StructureValue(propList); diff --git a/PluralKit.Core/Modules.cs b/PluralKit.Core/Modules.cs index c82acac0..ebe3ceb3 100644 --- a/PluralKit.Core/Modules.cs +++ b/PluralKit.Core/Modules.cs @@ -117,6 +117,7 @@ namespace PluralKit.Core .Destructure.AsScalar() .Destructure.AsScalar() .Destructure.AsScalar() + .Destructure.ByTransforming(t => new { t.Prefix, t.Suffix }) .Destructure.With() .WriteTo.Async(a =>