From 6c305860bc52125ee177147ed7a8a2c674cf9a67 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Fri, 26 Apr 2024 12:49:55 +0000 Subject: [PATCH] Fixed some compilation warnings --- src/NadekoBot/Modules/Administration/Self/DoAsUserMessage.cs | 5 ++++- src/NadekoBot/NadekoBot.csproj | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) 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 @@ - +