From c1179888d5694552481722e452791ce00d153cf4 Mon Sep 17 00:00:00 2001 From: Octol1ttle Date: Sun, 4 Jun 2023 18:58:23 +0500 Subject: [PATCH] Move NotificationReceiver into GuildConfiguration Signed-off-by: Octol1ttle --- Data/GuildConfiguration.cs | 5 +++++ Data/NotificationReceiver.cs | 6 ------ EventResponders.cs | 6 +++--- 3 files changed, 8 insertions(+), 9 deletions(-) delete mode 100644 Data/NotificationReceiver.cs diff --git a/Data/GuildConfiguration.cs b/Data/GuildConfiguration.cs index 5d4a704..5170264 100644 --- a/Data/GuildConfiguration.cs +++ b/Data/GuildConfiguration.cs @@ -3,6 +3,11 @@ using System.Globalization; namespace Boyfriend.Data; public class GuildConfiguration { + public enum NotificationReceiver { + Interested, + Role + } + public static readonly Dictionary CultureInfoCache = new() { { "en", new CultureInfo("en-US") }, { "ru", new CultureInfo("ru-RU") }, diff --git a/Data/NotificationReceiver.cs b/Data/NotificationReceiver.cs deleted file mode 100644 index 4d64f5d..0000000 --- a/Data/NotificationReceiver.cs +++ /dev/null @@ -1,6 +0,0 @@ -namespace Boyfriend.Data; - -public enum NotificationReceiver { - Interested, - Role -} diff --git a/EventResponders.cs b/EventResponders.cs index 0696581..4c44d2e 100644 --- a/EventResponders.cs +++ b/EventResponders.cs @@ -401,9 +401,9 @@ public class GuildScheduledEventUpdateResponder : IResponder { if (!user.GuildMember.IsDefined(out var member)) return true; @@ -423,7 +423,7 @@ public class GuildScheduledEventUpdateResponder : IResponder