Migration to EF and starting to add Identity #11
@ -2,7 +2,7 @@ using Newsbot.Collector.Domain.Models;
|
||||
|
||||
namespace Newsbot.Collector.Domain.Interfaces;
|
||||
|
||||
public interface IDiscordNotificatioClient
|
||||
public interface IDiscordClient
|
||||
{
|
||||
void SendMessage(DiscordMessage payload);
|
||||
}
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user