Self-contained export (#321)

This commit is contained in:
Alexey Golub 2020-07-18 15:45:09 +03:00 committed by GitHub
parent 94a85cdb01
commit ac64d9943a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
56 changed files with 813 additions and 581 deletions

View file

@ -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);
}
}