mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-03-19 21:31:28 +00:00
Use nullable
This commit is contained in:
@@ -96,7 +96,7 @@ namespace DiscordChatExporter.Core.Rendering
|
||||
await RenderFieldAsync(writer, FormatDate(message.Timestamp));
|
||||
|
||||
// Content
|
||||
await RenderFieldAsync(writer, FormatMarkdown(message.Content));
|
||||
await RenderFieldAsync(writer, FormatMarkdown(message.Content ?? ""));
|
||||
|
||||
// Attachments
|
||||
var formattedAttachments = message.Attachments.Select(a => a.Url).JoinToString(",");
|
||||
|
||||
Reference in New Issue
Block a user