Added func-based UsingXXX extensions

This commit is contained in:
RogueException
2016-01-09 19:41:53 -04:00
parent 23ff457d37
commit 3ddd8b509b
3 changed files with 22 additions and 3 deletions

View File

@@ -7,6 +7,7 @@
client.Services.Add(new ModuleService());
return client;
}
public static DiscordClient AddModule<T>(this DiscordClient client, T instance, string name = null, ModuleFilter filter = ModuleFilter.None)
where T : class, IModule
{