SMSModLogOutputAnalyzer/SMSModLogOutputAnalyzer/Modules/Config/ConfigModule.Commands.Setters.cs
Jonathan Riedel 7f08d72ef8 Refactored a bunch of things
Added Notes Module + Data Structure
Added Config Module + Data Structure
Added Role Buttons Module + Data Structure
2024-04-12 02:25:32 +02:00

25 lines
904 B
C#

using Discord;
using Discord.Interactions;
using SMSModLogOutputAnalyzer.Data;
namespace SMSModLogOutputAnalyzer.Modules
{
public partial class ConfigModule
{
public partial class Commands
{
[Group("set", "Setter Commands")]
public class Setters : InteractionModuleBase
{
[SlashCommand("notes_log_channel", "What channel to log note creations into.")]
[RequireUserPermission(ChannelPermission.ManageChannels)]
public async Task NotesLogChannel(ITextChannel channel)
{
Config.NotesLogChannel = channel;
Config.Save();
await RespondAsync(embed: new EmbedBuilder().WithDescription("Config value `NotesLogChannel` set to `" + channel.Id + "`.").WithDefaults().Build());
}
}
}
}
}