Cleanup and minor fixes

This commit is contained in:
Alexey Golub 2020-04-27 13:24:20 +03:00
parent 247f3a9c5b
commit 4a35a7b530
6 changed files with 47 additions and 39 deletions

View file

@ -35,15 +35,15 @@ Failed to perform an HTTP request.
return new DiscordChatExporterException(message);
}
internal static DiscordChatExporterException ChannelForbidden(string channel)
internal static DiscordChatExporterException Forbidden()
{
var message = $"Access to channel '{channel}' is forbidden.";
const string message = "Access is forbidden.";
return new DiscordChatExporterException(message);
}
internal static DiscordChatExporterException ChannelDoesNotExist(string channel)
internal static DiscordChatExporterException NotFound()
{
var message = $"Channel '{channel}' does not exist.";
const string message = "Not found.";
return new DiscordChatExporterException(message);
}