mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-04-28 00:36:00 +00:00
Cleanup and minor fixes
This commit is contained in:
@@ -39,7 +39,7 @@ namespace DiscordChatExporter.Domain.Exporting
|
||||
|
||||
private async Task<MessageWriter> GetWriterAsync()
|
||||
{
|
||||
// Ensure partition limit is not exceeded
|
||||
// Ensure partition limit has not been exceeded
|
||||
if (IsPartitionLimitReached())
|
||||
{
|
||||
await ResetWriterAsync();
|
||||
|
||||
@@ -5,7 +5,6 @@ using DiscordChatExporter.Domain.Discord.Models;
|
||||
namespace DiscordChatExporter.Domain.Exporting
|
||||
{
|
||||
// Used for grouping contiguous messages in HTML export
|
||||
|
||||
internal partial class MessageGroup
|
||||
{
|
||||
public User Author { get; }
|
||||
|
||||
@@ -23,7 +23,11 @@ namespace DiscordChatExporter.Domain.Exporting.Writers.MarkdownVisitors
|
||||
|
||||
public override MarkdownNode VisitMention(MentionNode mention)
|
||||
{
|
||||
if (mention.Type == MentionType.User)
|
||||
if (mention.Type == MentionType.Meta)
|
||||
{
|
||||
_buffer.Append($"@{mention.Id}");
|
||||
}
|
||||
else if (mention.Type == MentionType.User)
|
||||
{
|
||||
var member = _context.TryGetMentionedMember(mention.Id);
|
||||
var name = member?.User.Name ?? "Unknown";
|
||||
|
||||
Reference in New Issue
Block a user