mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-03-19 21:31:28 +00:00
Add csv exporting (#44)
This commit is contained in:
committed by
Alexey Golub
parent
e0284e281c
commit
e1e8c73613
@@ -4,6 +4,7 @@
|
||||
{
|
||||
PlainText,
|
||||
HtmlDark,
|
||||
HtmlLight
|
||||
HtmlLight,
|
||||
Csv
|
||||
}
|
||||
}
|
||||
@@ -12,6 +12,8 @@ namespace DiscordChatExporter.Core.Models
|
||||
return "html";
|
||||
if (format == ExportFormat.HtmlLight)
|
||||
return "html";
|
||||
if (format == ExportFormat.Csv)
|
||||
return "csv";
|
||||
|
||||
throw new ArgumentOutOfRangeException(nameof(format));
|
||||
}
|
||||
@@ -24,6 +26,8 @@ namespace DiscordChatExporter.Core.Models
|
||||
return "HTML (Dark)";
|
||||
if (format == ExportFormat.HtmlLight)
|
||||
return "HTML (Light)";
|
||||
if (format == ExportFormat.Csv)
|
||||
return "Comma Seperated Values (CSV)";
|
||||
|
||||
throw new ArgumentOutOfRangeException(nameof(format));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user