Exemplo n.º 1
0
        public DiscordService()
        {
            _services       = ConfigureServices();
            _client         = _services.GetRequiredService <DiscordSocketClient>();
            _commandHandler = _services.GetRequiredService <CommandHandler>();
            _lavaNode       = _services.GetRequiredService <LavaNode>();
            _globalData     = _services.GetRequiredService <GlobalData>();
            _audioService   = _services.GetRequiredService <LavaLinkAudio>();

            SubscribeLavaLinkEvents();
            SubscribeDiscordEvents();
        }
Exemplo n.º 2
0
        public DiscordService()
        {
            _services            = ConfigureServices();
            _client              = _services.GetRequiredService <DiscordSocketClient>();
            _commandHandler      = _services.GetRequiredService <CommandHandler>();
            _lavaNode            = _services.GetRequiredService <LavaNode>();
            _globalData          = _services.GetRequiredService <GlobalData>();
            _audioService        = _services.GetRequiredService <LavaLinkAudio>();
            _playersRulesService = _services.GetRequiredService <PlayersRulesService>();
            _dataService         = new DataService(_services.GetRequiredService <CsharpiEntities>());
            _helpService         = new HelpService(_services.GetRequiredService <CommandService>());

            SubscribeLavaLinkEvents();
            SubscribeDiscordEvents();
        }