Renamed the Discord Notification client to help with naming issues

This commit is contained in:
James Tombleson 2023-07-09 21:30:23 -07:00
parent 58229b1348
commit 597470fd69
2 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@ using Newsbot.Collector.Domain.Models;
namespace Newsbot.Collector.Domain.Interfaces;
public interface IDiscordNotificatioClient
public interface IDiscordClient
{
void SendMessage(DiscordMessage payload);
}

View File

@ -6,16 +6,16 @@ using Newtonsoft.Json;
namespace Newsbot.Collector.Services.Notifications.Discord;
public class DiscordWebhookClient : IDiscordNotificatioClient
public class DiscordClient : IDiscordClient
{
private readonly string[] _webhooks;
public DiscordWebhookClient(string webhook)
public DiscordClient(string webhook)
{
_webhooks = new[] { webhook };
}
public DiscordWebhookClient(string[] webhooks)
public DiscordClient(string[] webhooks)
{
_webhooks = webhooks;
}