mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-02-27 11:43:51 +00:00
Fix crash when parsing position on DM channels (#496)
This commit is contained in:
@@ -94,8 +94,8 @@ namespace DiscordChatExporter.Domain.Exporting
|
||||
"%T" => channel.Category.Name,
|
||||
"%c" => channel.Id.ToString(),
|
||||
"%C" => channel.Name,
|
||||
"%p" => channel.Position.ToString(),
|
||||
"%P" => channel.Category.Position.ToString(),
|
||||
"%p" => channel.Position?.ToString() ?? "0",
|
||||
"%P" => channel.Category.Position?.ToString() ?? "0",
|
||||
"%a" => (after ?? Snowflake.Zero).ToDate().ToString("yyyy-MM-dd"),
|
||||
"%b" => (before?.ToDate() ?? DateTime.Now).ToString("yyyy-MM-dd"),
|
||||
"%%" => "%",
|
||||
|
||||
Reference in New Issue
Block a user