Updated Module engine
This commit is contained in:
13
DiscordBotCore/Others/Exceptions/ModuleMethodNotFound.cs
Normal file
13
DiscordBotCore/Others/Exceptions/ModuleMethodNotFound.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user