Browse Source

Rename method to more intuitive 'OnModuleBuilding'

pull/934/head
Joe4evr 7 years ago
parent
commit
031b289d80
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      src/Discord.Net.Commands/IModuleBase.cs
  2. +2
    -2
      src/Discord.Net.Commands/ModuleBase.cs

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

@@ -8,6 +8,6 @@ namespace Discord.Commands
void AfterExecute(CommandInfo command);

void OnModuleAdded(CommandService commandService);
void OnModuleBuilding(CommandService commandService);
}
}

+ 2
- 2
src/Discord.Net.Commands/ModuleBase.cs View File

@@ -23,7 +23,7 @@ namespace Discord.Commands
{
}

protected virtual void OnModuleAdded(CommandService commandService)
protected virtual void OnModuleBuilding(CommandService commandService)
{
}

@@ -38,6 +38,6 @@ namespace Discord.Commands

void IModuleBase.AfterExecute(CommandInfo command) => AfterExecute(command);

void IModuleBase.OnModuleAdded(CommandService commandService) => OnModuleAdded(commandService);
void IModuleBase.OnModuleBuilding(CommandService commandService) => OnModuleBuilding(commandService);
}
}

Loading…
Cancel
Save