Skip to content

Is there a nice way to add modules from multiple assemblies without calling AddModule for each one #2360

Answered by exsersewo
EpicOfficer asked this question in Q&A
Discussion options

You must be logged in to vote

Couldn't you get the assembly that the modules reside in then call AddModulesAsync on that?

Something akin to:
commandService.AddModulesAsync(typeof(SuperAwesomeModule).Assembly, services ?? null);

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@exsersewo
Comment options

@EpicOfficer
Comment options

@exsersewo
Comment options

Answer selected by csmir
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants