示例#1
0
        public TempVcService(DiscordShardedClient client, ServerPropertiesService spService, ILogger <TempVcService> logger)
        {
            Client    = client;
            SpService = spService;
            Logger    = logger;

            client.UserVoiceStateUpdated += UserVoiceStateUpdated;
        }
示例#2
0
        public CommandHandler(IServiceProvider services, IConfiguration config, CommandService commandService, DiscordShardedClient client, ServerPropertiesService spService)
        {
            // didn't grab these from the service provider because it's usually considered better convention to have them defined in the constructor
            _config    = config;
            Commands   = commandService;
            _client    = client;
            _spService = spService;
            _services  = services;

            // take action when we execute a command
            Commands.CommandExecuted += CommandExecutedAsync;

            // take action when we receive a message (so we can process it, and see if it is a valid command)
            _client.MessageReceived += MessageReceivedAsync;
        }
 public CuteDetection(DiscordShardedClient client, ServerPropertiesService spService)
 {
     Client    = client;
     SpService = spService;
 }