Renamed the Discord Notification client to help with naming issues
This commit is contained in:
parent
58229b1348
commit
597470fd69
@ -2,7 +2,7 @@ using Newsbot.Collector.Domain.Models;
|
|||||||
|
|
||||||
namespace Newsbot.Collector.Domain.Interfaces;
|
namespace Newsbot.Collector.Domain.Interfaces;
|
||||||
|
|
||||||
public interface IDiscordNotificatioClient
|
public interface IDiscordClient
|
||||||
{
|
{
|
||||||
void SendMessage(DiscordMessage payload);
|
void SendMessage(DiscordMessage payload);
|
||||||
}
|
}
|
@ -6,16 +6,16 @@ using Newtonsoft.Json;
|
|||||||
|
|
||||||
namespace Newsbot.Collector.Services.Notifications.Discord;
|
namespace Newsbot.Collector.Services.Notifications.Discord;
|
||||||
|
|
||||||
public class DiscordWebhookClient : IDiscordNotificatioClient
|
public class DiscordClient : IDiscordClient
|
||||||
{
|
{
|
||||||
private readonly string[] _webhooks;
|
private readonly string[] _webhooks;
|
||||||
|
|
||||||
public DiscordWebhookClient(string webhook)
|
public DiscordClient(string webhook)
|
||||||
{
|
{
|
||||||
_webhooks = new[] { webhook };
|
_webhooks = new[] { webhook };
|
||||||
}
|
}
|
||||||
|
|
||||||
public DiscordWebhookClient(string[] webhooks)
|
public DiscordClient(string[] webhooks)
|
||||||
{
|
{
|
||||||
_webhooks = webhooks;
|
_webhooks = webhooks;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user