mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-05-07 22:46:30 +03:00
Improve diff display for edited messages
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
63484ac353
commit
4595638cdb
2 changed files with 10 additions and 6 deletions
|
@ -1,6 +1,5 @@
|
|||
using Boyfriend.Data;
|
||||
using Boyfriend.Services.Data;
|
||||
using DiffPlex;
|
||||
using DiffPlex.DiffBuilder;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Remora.Discord.API.Abstractions.Gateway.Events;
|
||||
|
@ -189,7 +188,7 @@ public class MessageEditedResponder : IResponder<IMessageUpdate> {
|
|||
var currentUserResult = await _userApi.GetCurrentUserAsync(ct);
|
||||
if (!currentUserResult.IsDefined(out var currentUser)) return Result.FromError(currentUserResult);
|
||||
|
||||
var diff = new SideBySideDiffBuilder(Differ.Instance).BuildDiffModel(message.Content, newContent, true, true);
|
||||
var diff = InlineDiffBuilder.Diff(message.Content, newContent);
|
||||
|
||||
Messages.Culture = guildConfiguration.GetCulture();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue