Skip to content

Commit

Permalink
Move service
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickklaeren committed Nov 13, 2024
1 parent 4dd6770 commit f1daede
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@
using Modix.Bot.Preconditions;
using Modix.Common.Extensions;
using Modix.Data.Models.Core;
using Modix.Services;
using Modix.Services.CommandHelp;
using Modix.Services.Core;

namespace Modix.Bot.Modules
{
[ModuleHelp("Channel Designations", "Configures channel designation for various bot services.")]
[Group("channel-designations", "Configures channel designation for various bot services.")]
[DefaultMemberPermissions(GuildPermission.BanMembers)]
public class ChannelDesignationsModule : InteractionModuleBase
public class DesignatedChannelsModule : InteractionModuleBase
{
private readonly DesignatedChannelService _designatedChannelService;
private readonly ModixConfig _config;

public ChannelDesignationsModule(DesignatedChannelService designatedChannelService, IOptions<ModixConfig> config)
public DesignatedChannelsModule(DesignatedChannelService designatedChannelService, IOptions<ModixConfig> config)
{
_designatedChannelService = designatedChannelService;
_config = config.Value;
Expand Down
2 changes: 1 addition & 1 deletion src/Modix.Bot/Responders/StarboardReactionResponder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using Modix.Bot.Notifications;
using Modix.Bot.Responders.MessageQuotes;
using Modix.Data.Models.Core;
using Modix.Services.Core;
using Modix.Services;
using Modix.Services.Starboard;
using Modix.Services.Utilities;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
using Microsoft.EntityFrameworkCore;
using Modix.Data;
using Modix.Data.Models.Core;
using Modix.Services.Core;

namespace Modix.Services.Core;
namespace Modix.Services;

public class DesignatedChannelService(
ModixContext db,
Expand Down
4 changes: 1 addition & 3 deletions src/Modix.Web/Components/Configuration/Channels.razor
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
@using Modix.Data.Models.Core;
@using Modix.Services.Core;
@using Modix.Web.Models.Common;
@using Modix.Web.Models.Configuration;
@using Modix.Web.Models.UserLookup;
@using Modix.Web.Services;
@using MudBlazor
@using Humanizer;
@using System.Security.Claims;
@using Modix.Services

<PageTitle>Modix - Channels</PageTitle>
<MudText Typo="Typo.h4">Channel Designations</MudText>
Expand Down

0 comments on commit f1daede

Please sign in to comment.