public CommandHandler(IELContext db, DiscordSocketClient discord, CommandService commands, IConfigurationRoot config, IServiceProvider services, DeleteMessageService delete, DSNCalculatorService dsn, VoiceService voice) { _db = db; _client = discord; _commands = commands; _config = config; _provider = services; _renameRequests = new List<RenameRequest>(); _deleteService = delete; _dsn = dsn; _voiceService = voice; _franchises = new List<Franchise>(); _acceptEmote = new Emoji(_config["emojis:accept"]); _denyEmote = new Emoji(_config["emojis:deny"]); _upvoteEmote = new Emoji(_config["emojis:upvote"]); //_emoteVoteChannel = ulong.Parse(_config["ids:textChannelIds:emoteVoteChannel"]); _emoteVoteChannel = 0; //_ielPollChannel = ulong.Parse(_config["ids:textChannelIds:pollChannel"]); _ielPollChannel = 0; //_franchiseContacts = ulong.Parse(_config["ids:textChannelIds:franchiseContactsChannel"]); _franchiseContacts = 0; _client.MessageReceived += OnMessageReceieved; _client.ReactionAdded += OnReactionAdded; _client.ReactionRemoved += OnReactionRemoved; _client.UserVoiceStateUpdated += OnUserVoiceStatusChanged; _staffRoleIDs = new List<ulong>() { ulong.Parse(_config["ids:staffRoles:IELManagers"]), ulong.Parse(_config["ids:staffRoles:IELTeamLeaders"]), ulong.Parse(_config["ids:staffRoles:IELModerationTeam"]), ulong.Parse(_config["ids:staffRoles:IELSupportTeam"]) }; }
public VoiceService(IELContext db) { _db = db; _customVoiceChannels = new List <PublicVoiceChannel>(); }
public DSNModule(IELContext db, DSNCalculatorService dsn) { _db = db; _dsn = dsn; }
public ConfigModule(IELContext db) : base() { _db = db; }
public CustomCommandModule(IELContext db, CommandHandler handler) { _db = db; _commandHandler = handler; }