Browse Source

get private methods(backward compatibility)

pull/1773/head
Antonio 4 years ago
parent
commit
2818777b29
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.Commands/Builders/ModuleClassBuilder.cs

+ 1
- 1
src/Discord.Net.Commands/Builders/ModuleClassBuilder.cs View File

@@ -136,7 +136,7 @@ namespace Discord.Commands
builder.Name = typeInfo.Name; builder.Name = typeInfo.Name;


// Get all methods (including from inherited members), that are valid commands // Get all methods (including from inherited members), that are valid commands
var validCommands = typeInfo.GetMethods().Where(IsValidCommandDefinition);
var validCommands = typeInfo.GetMethods(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic).Where(IsValidCommandDefinition);


foreach (var method in validCommands) foreach (var method in validCommands)
{ {


Loading…
Cancel
Save