diff --git a/src/NadekoBot/Modules/Administration/Self/DoAsUserMessage.cs b/src/NadekoBot/Modules/Administration/Self/DoAsUserMessage.cs index 5eebaa1cb..ff21f0ab1 100644 --- a/src/NadekoBot/Modules/Administration/Self/DoAsUserMessage.cs +++ b/src/NadekoBot/Modules/Administration/Self/DoAsUserMessage.cs @@ -113,6 +113,7 @@ public sealed class DoAsUserMessage : IUserMessage public MessageFlags? Flags => _msg.Flags; + [Obsolete("Obsolete in favor of InteractionMetadata")] public IMessageInteraction Interaction => _msg.Interaction; public MessageRoleSubscriptionData RoleSubscriptionData => _msg.RoleSubscriptionData; @@ -146,5 +147,7 @@ public sealed class DoAsUserMessage : IUserMessage public MessageResolvedData ResolvedData => _msg.ResolvedData; public IUserMessage ReferencedMessage => _msg.ReferencedMessage; - public IMessageInteractionMetadata InteractionMetadata { get; } + + public IMessageInteractionMetadata InteractionMetadata + => _msg.InteractionMetadata; } \ No newline at end of file diff --git a/src/NadekoBot/NadekoBot.csproj b/src/NadekoBot/NadekoBot.csproj index a22f2f9fe..74ccbd626 100644 --- a/src/NadekoBot/NadekoBot.csproj +++ b/src/NadekoBot/NadekoBot.csproj @@ -60,7 +60,7 @@ - +