diff --git a/src/Commands/RemindCommandGroup.cs b/src/Commands/RemindCommandGroup.cs index 683a51e..56164ce 100644 --- a/src/Commands/RemindCommandGroup.cs +++ b/src/Commands/RemindCommandGroup.cs @@ -31,14 +31,18 @@ public class RemindCommandGroup : CommandGroup private readonly GuildDataService _guildData; private readonly IDiscordRestUserAPI _userApi; + // ReSharper disable once NotAccessedField.Local + private readonly IDiscordRestInteractionAPI _interactionApi; + public RemindCommandGroup( ICommandContext context, GuildDataService guildData, IFeedbackService feedback, - IDiscordRestUserAPI userApi) + IDiscordRestUserAPI userApi, IDiscordRestInteractionAPI interactionApi) { _context = context; _guildData = guildData; _feedback = feedback; _userApi = userApi; + _interactionApi = interactionApi; } /// @@ -163,6 +167,8 @@ public class RemindCommandGroup : CommandGroup return (Result)messageResult; } + // var a = await _interactionApi.GetOriginalInteractionResponseAsync(message.Application.Value.ID.Value, "", ct); + //TODO memberData.Reminders.Add( new Reminder { @@ -171,6 +177,7 @@ public class RemindCommandGroup : CommandGroup Text = text, MessageId = message.ID.Value }); + return (Result)messageResult; } diff --git a/src/Services/Update/MemberUpdateService.cs b/src/Services/Update/MemberUpdateService.cs index 2d0d82c..554cdc6 100644 --- a/src/Services/Update/MemberUpdateService.cs +++ b/src/Services/Update/MemberUpdateService.cs @@ -1,3 +1,4 @@ +using System.Text; using System.Text.RegularExpressions; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; @@ -227,9 +228,8 @@ public sealed partial class MemberUpdateService : BackgroundService var embed = new EmbedBuilder().WithSmallTitle( string.Format(Messages.Reminder, user.GetTag()), user) - .WithTitle( - string.Format(Messages.DescriptionReminder, Markdown.InlineCode(reminder.Text))) - .WithDescription(string.Format(Messages.DescriptionActionJumpToMessage, $"https://discord.com/channels/{guildId.Value}/{reminder.ChannelId}/{reminder.MessageId}")) + .WithDescription(string.Format(Messages.DescriptionReminder, Markdown.InlineCode(reminder.Text)) + + $" (https://discord.com/channels/{guildId.Value}/{reminder.ChannelId}/{reminder.MessageId})") .WithColour(ColorsList.Magenta) .Build();