public void Remove(CommandRegistration registration) { if (this.commands.TryGetValue(registration.Command, out var existingRegistration)) { if (existingRegistration == registration) { this.commands.Remove(registration.Command); } } }
public void RemovePrivateMessageHandler(CommandRegistration registration) => this.commandRegistrationManager.Remove(registration);
public void Add(CommandRegistration registration) { this.commands.Add(registration.Command, registration); }
public void AddPrivateMessageHandler(CommandRegistration registration) => this.commandRegistrationManager.Add(registration);