mirror of https://github.com/oliverbooth/VPLink
style: clean up reply branch
This commit is contained in:
parent
1491f7fd86
commit
3882d77fbe
|
@ -107,11 +107,14 @@ internal sealed class DiscordMessageService : BackgroundService, IDiscordMessage
|
||||||
if (replyContent is not null)
|
if (replyContent is not null)
|
||||||
{
|
{
|
||||||
IUser replyAuthor = fetchedMessage!.Author;
|
IUser replyAuthor = fetchedMessage!.Author;
|
||||||
|
string name = fetchedMessage.Author.GetDisplayName();
|
||||||
|
|
||||||
_logger.LogInformation("Replying to {Author}: {Content}", replyAuthor, replyContent);
|
_logger.LogInformation("Replying to {Author}: {Content}", replyAuthor, replyContent);
|
||||||
builder.Clear();
|
builder.Clear();
|
||||||
SanitizeContent(guild, replyContent, ref builder);
|
SanitizeContent(guild, replyContent, ref builder);
|
||||||
replyContent = builder.ToString();
|
replyContent = builder.ToString();
|
||||||
messages.Add(new RelayedMessage(null!, $"↩️ Replying to {fetchedMessage.Author.GetDisplayName()}:", true));
|
|
||||||
|
messages.Add(new RelayedMessage(null!, $"↩️ Replying to {name}:", true));
|
||||||
messages.Add(new RelayedMessage(null!, replyContent, true));
|
messages.Add(new RelayedMessage(null!, replyContent, true));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue