예제 #1
0
 /// <summary> Deregisters command if it
 /// was registered before. </summary>
 public static bool Deregister(CommandManagerDelegate Command) =>
 Deregister(Command.Method);
예제 #2
0
 /// <summary> Adds command in
 /// <see cref="Commands.ChatCommands"/> using
 /// information from method attributes. </summary>
 public static bool Register(CommandManagerDelegate Command,
                             bool SkipIfHasDoNotRegisterAttribute = false) =>
 Register(Command.Method,
          SkipIfHasDoNotRegisterAttribute, out string Name);