mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-05-31 23:08:23 -04:00
Self-contained export (#321)
This commit is contained in:
parent
94a85cdb01
commit
ac64d9943a
56 changed files with 813 additions and 581 deletions
|
@ -1,6 +1,5 @@
|
|||
using System;
|
||||
using System.Net.Http;
|
||||
using DiscordChatExporter.Domain.Discord.Models;
|
||||
|
||||
namespace DiscordChatExporter.Domain.Exceptions
|
||||
{
|
||||
|
@ -43,17 +42,14 @@ Failed to perform an HTTP request.
|
|||
|
||||
internal static DiscordChatExporterException NotFound()
|
||||
{
|
||||
const string message = "Not found.";
|
||||
const string message = "Requested resource does not exist.";
|
||||
return new DiscordChatExporterException(message);
|
||||
}
|
||||
|
||||
internal static DiscordChatExporterException ChannelEmpty(string channel)
|
||||
internal static DiscordChatExporterException ChannelIsEmpty(string channel)
|
||||
{
|
||||
var message = $"Channel '{channel}' contains no messages for the specified period.";
|
||||
return new DiscordChatExporterException(message);
|
||||
}
|
||||
|
||||
internal static DiscordChatExporterException ChannelEmpty(Channel channel) =>
|
||||
ChannelEmpty(channel.Name);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue