public MessageTrackingBehavior( ICommandPrefixParser commandPrefixParser, IDogStatsd dogStatsd, ILogger <MessageTrackingBehavior> logger, IMessageRepository messageRepository) { _commandPrefixParser = commandPrefixParser; _dogStatsd = dogStatsd; _logger = logger; _messageRepository = messageRepository; }
/// <summary> /// Constructs a new <see cref="CommandListeningBehavior"/>, with the given dependencies. /// </summary> public CommandListeningBehavior( ICommandPrefixParser commandPrefixParser, IServiceProvider serviceProvider, CommandService commandService, CommandErrorHandler commandErrorHandler, IDiscordClient discordClient, IAuthorizationService authorizationService, IDogStatsd stats = null) { _commandPrefixParser = commandPrefixParser; ServiceProvider = serviceProvider; CommandService = commandService; CommandErrorHandler = commandErrorHandler; DiscordClient = discordClient; AuthorizationService = authorizationService; _stats = stats; }