Updated Module engine

This commit is contained in:
2024-08-10 20:27:59 +03:00
parent 18a059af0e
commit 9c98d2e219
16 changed files with 355 additions and 124 deletions

View File

@@ -0,0 +1,13 @@
using System;
using DiscordBotCore.Interfaces.Modules;
namespace DiscordBotCore.Others.Exceptions;
public class ModuleMethodNotFound : Exception
{
private IModule _SearchedModule;
public ModuleMethodNotFound(IModule module, string methodName) : base($"Method not found {methodName} in module {module.Name}")
{
_SearchedModule = module;
}
}