Added Notes Module + Data Structure Added Config Module + Data Structure Added Role Buttons Module + Data Structure
25 lines
904 B
C#
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());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|