More fixes to the new config. Module loader reworked
This commit is contained in:
@@ -10,7 +10,7 @@ namespace DiscordBot.Bot.Commands;
|
||||
/// <summary>
|
||||
/// The help command
|
||||
/// </summary>
|
||||
internal class Help: DBCommand
|
||||
internal class Help: IDbCommand
|
||||
{
|
||||
/// <summary>
|
||||
/// Command name
|
||||
@@ -32,7 +32,7 @@ internal class Help: DBCommand
|
||||
/// <summary>
|
||||
/// Check if the command require administrator to be executed
|
||||
/// </summary>
|
||||
public bool requireAdmin => false;
|
||||
public bool RequireAdmin => false;
|
||||
|
||||
/// <summary>
|
||||
/// The main body of the command
|
||||
@@ -58,7 +58,7 @@ internal class Help: DBCommand
|
||||
var normalCommands = "";
|
||||
|
||||
foreach (var cmd in PluginLoader.Commands)
|
||||
if (cmd.requireAdmin)
|
||||
if (cmd.RequireAdmin)
|
||||
adminCommands += cmd.Command + " ";
|
||||
else
|
||||
normalCommands += cmd.Command + " ";
|
||||
|
||||
@@ -9,11 +9,11 @@ using DiscordBotCore.Others;
|
||||
|
||||
namespace DiscordBot.Bot.Commands.SlashCommands;
|
||||
|
||||
public class Help: DBSlashCommand
|
||||
public class Help: IDbSlashCommand
|
||||
{
|
||||
public string Name => "help";
|
||||
public string Description => "This command allows you to check all loaded commands";
|
||||
public bool canUseDM => true;
|
||||
public bool CanUseDm => true;
|
||||
|
||||
public bool HasInteraction => false;
|
||||
|
||||
@@ -55,7 +55,7 @@ public class Help: DBSlashCommand
|
||||
return;
|
||||
}
|
||||
|
||||
embedBuilder.AddField("DM Usable:", slashCommand.canUseDM, true)
|
||||
embedBuilder.AddField("DM Usable:", slashCommand.CanUseDm, true)
|
||||
.WithDescription(slashCommand.Description);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user