Exemplo n.º 1
0
 /// <summary>
 /// Instantiates a new instance of the <see cref="MemberApplicationUpdatedResponder"/> class.
 /// </summary>
 /// <param name="logger">The logging instance.</param>
 /// <param name="channelApi">The channel API.</param>
 /// <param name="mediator">The mediator.</param>
 /// <param name="discordSettings">The Discord settings.</param>
 public MemberApplicationUpdatedResponder(
     ILogger <MemberApplicationUpdatedResponder> logger,
     IDiscordRestChannelAPI channelApi,
     IMediator mediator,
     DiscordSettings discordSettings
     )
 {
     _logger          = logger;
     _channelApi      = channelApi;
     _mediator        = mediator;
     _discordSettings = discordSettings;
 }
 /// <summary>
 /// Instantiates a new instance of <see cref="UserJoinedResponder"/> class.
 /// </summary>
 /// <param name="channelApi">The channel API.</param>
 /// <param name="discordSettings">The Discord settings.</param>
 /// <param name="colourPalette">The colour palette.</param>
 /// <param name="guildApi">The guild API.</param>
 public UserJoinedResponder(
     IDiscordRestChannelAPI channelApi,
     DiscordSettings discordSettings,
     IColourPalette colourPalette,
     IDiscordRestGuildAPI guildApi
     )
 {
     _channelApi      = channelApi;
     _discordSettings = discordSettings;
     _colourPalette   = colourPalette;
     _guildApi        = guildApi;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PrivacyCommands"/> class.
 /// </summary>
 /// <param name="feedback">The user feedback service.</param>
 /// <param name="privacy">The privacy service.</param>
 /// <param name="context">The command context.</param>
 /// <param name="channelAPI">The channel API.</param>
 public PrivacyCommands
 (
     FeedbackService feedback,
     PrivacyService privacy,
     ICommandContext context,
     IDiscordRestChannelAPI channelAPI
 )
 {
     _feedback   = feedback;
     _privacy    = privacy;
     _context    = context;
     _channelAPI = channelAPI;
 }
Exemplo n.º 4
0
 public MuteRoleConfigurationResponder(
     IAuthorizationService authorizationService,
     IAuthorizationContextService authorizationContextService,
     IDiscordRestChannelAPI channelApi,
     IDesignatedChannelService designatedChannelService,
     IModerationService moderationService)
 {
     _authorizationService        = authorizationService;
     _authorizationContextService = authorizationContextService;
     _channelApi = channelApi;
     _designatedChannelService = designatedChannelService;
     _moderationService        = moderationService;
 }
Exemplo n.º 5
0
 public ModerationCommands(
     ICommandContext context,
     ICommandConfirmationService commandConfirmationService,
     IDiscordRestChannelAPI channelApi,
     IModerationService moderationService,
     IUserService userService)
 {
     _context = context;
     _commandConfirmationService = commandConfirmationService;
     _channelApi        = channelApi;
     _moderationService = moderationService;
     _userService       = userService;
 }
Exemplo n.º 6
0
 public Handler(
     IPolychatService polychatService,
     IDiscordRestChannelAPI channelApi,
     PolychatSettings polychatSettings,
     ILogger <HandleServerStatus> logger,
     IColourPalette colourPalette
     )
 {
     _polychatService  = polychatService;
     _channelApi       = channelApi;
     _polychatSettings = polychatSettings;
     _logger           = logger;
     _colourPalette    = colourPalette;
 }
Exemplo n.º 7
0
 public MessageLoggingResponder(ILogger <MessageLoggingResponder> logger,
                                IDiscordRestChannelAPI channelApi,
                                IDesignatedChannelService designatedChannelService,
                                IAuthorizationContextService authService,
                                IThreadService threadService,
                                CacheService cache)
 {
     _logger     = logger;
     _channelApi = channelApi;
     _designatedChannelService = designatedChannelService;
     _authService = authService;
     _threadSvc   = threadService;
     _cache       = cache;
 }
Exemplo n.º 8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="JoinMessageResponder"/> class.
 /// </summary>
 /// <param name="feedback">The feedback service.</param>
 /// <param name="servers">The server service.</param>
 /// <param name="userAPI">The user API.</param>
 /// <param name="channelAPI">The channel API.</param>
 /// <param name="guildAPI">The guild API.</param>
 public JoinMessageResponder
 (
     FeedbackService feedback,
     ServerService servers,
     IDiscordRestUserAPI userAPI,
     IDiscordRestChannelAPI channelAPI,
     IDiscordRestGuildAPI guildAPI
 )
 {
     _feedback   = feedback;
     _servers    = servers;
     _userAPI    = userAPI;
     _channelAPI = channelAPI;
     _guildAPI   = guildAPI;
 }
Exemplo n.º 9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ServerCommands"/> class.
 /// </summary>
 /// <param name="feedback">The user feedback service.</param>
 /// <param name="servers">The servers service.</param>
 /// <param name="context">The command context.</param>
 /// <param name="guildAPI">The guild API.</param>
 /// <param name="channelAPI">The channel API.</param>
 public ServerCommands
 (
     FeedbackService feedback,
     ServerService servers,
     ICommandContext context,
     IDiscordRestGuildAPI guildAPI,
     IDiscordRestChannelAPI channelAPI
 )
 {
     _feedback   = feedback;
     _servers    = servers;
     _context    = context;
     _guildAPI   = guildAPI;
     _channelAPI = channelAPI;
 }
Exemplo n.º 10
0
 public MessageCheckCommands(
     ICommandContext context,
     ICommandConfirmationService commandConfirmationService,
     IMessageContentPatternService messageContentPatternService,
     IUserService userService,
     IDiscordRestChannelAPI channelApi,
     IDiscordRestGuildAPI guildApi)
 {
     _context = context;
     _commandConfirmationService   = commandConfirmationService;
     _messageContentPatternService = messageContentPatternService;
     _userService = userService;
     _channelApi  = channelApi;
     _guildApi    = guildApi;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DedicatedChannelService"/> class.
 /// </summary>
 /// <param name="serverSettings">The server settings service.</param>
 /// <param name="database">The database context.</param>
 /// <param name="guildAPI">The guild API.</param>
 /// <param name="channelAPI">The channel API.</param>
 /// <param name="userAPI">The user API.</param>
 public DedicatedChannelService
 (
     RoleplayServerSettingsService serverSettings,
     RoleplayingDatabaseContext database,
     IDiscordRestGuildAPI guildAPI,
     IDiscordRestChannelAPI channelAPI,
     IDiscordRestUserAPI userAPI
 )
 {
     _serverSettings = serverSettings;
     _database       = database;
     _guildAPI       = guildAPI;
     _channelAPI     = channelAPI;
     _userAPI        = userAPI;
 }
Exemplo n.º 12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PrivacyService"/> class.
 /// </summary>
 /// <param name="database">The core database.</param>
 /// <param name="feedback">The feedback service.</param>
 /// <param name="content">The content service.</param>
 /// <param name="channelAPI">The channel API.</param>
 /// <param name="userAPI">The user API.</param>
 public PrivacyService
 (
     CoreDatabaseContext database,
     FeedbackService feedback,
     ContentService content,
     IDiscordRestChannelAPI channelAPI,
     IDiscordRestUserAPI userAPI
 )
 {
     _database   = database;
     _feedback   = feedback;
     _content    = content;
     _channelAPI = channelAPI;
     _userAPI    = userAPI;
 }
Exemplo n.º 13
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RoleplayDiscordService"/> class.
 /// </summary>
 /// <param name="roleplays">The roleplay service.</param>
 /// <param name="dedicatedChannels">The dedicated channel service.</param>
 /// <param name="users">The user service.</param>
 /// <param name="servers">The server service.</param>
 /// <param name="guildAPI">The guild API.</param>
 /// <param name="channelAPI">The channel API.</param>
 public RoleplayDiscordService
 (
     RoleplayService roleplays,
     DedicatedChannelService dedicatedChannels,
     UserService users,
     ServerService servers,
     IDiscordRestGuildAPI guildAPI,
     IDiscordRestChannelAPI channelAPI
 )
 {
     _roleplays         = roleplays;
     _dedicatedChannels = dedicatedChannels;
     _users             = users;
     _servers           = servers;
     _guildAPI          = guildAPI;
     _channelAPI        = channelAPI;
 }
Exemplo n.º 14
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AmbyCommands"/> class.
 /// </summary>
 /// <param name="feedback">The user feedback service.</param>
 /// <param name="sass">The sass service.</param>
 /// <param name="portraits">The portrait service.</param>
 /// <param name="context">The command context.</param>
 /// <param name="channelAPI">The channel API.</param>
 /// <param name="userAPI">The user API.</param>
 public AmbyCommands
 (
     FeedbackService feedback,
     SassService sass,
     PortraitService portraits,
     ICommandContext context,
     IDiscordRestChannelAPI channelAPI,
     IDiscordRestUserAPI userAPI
 )
 {
     _feedback   = feedback;
     _sass       = sass;
     _portraits  = portraits;
     _context    = context;
     _channelAPI = channelAPI;
     _userAPI    = userAPI;
 }
Exemplo n.º 15
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KinkWizardInteractions"/> class.
 /// </summary>
 /// <param name="kinks">The kink service.</param>
 /// <param name="dataService">The in-memory data service.</param>
 /// <param name="feedback">The user feedback service.</param>
 /// <param name="channelAPI">The channel API.</param>
 /// <param name="interactionAPI">The interaction API.</param>
 /// <param name="context">The interaction context.</param>
 public KinkWizardInteractions
 (
     KinkService kinks,
     InMemoryDataService <Snowflake, KinkWizard> dataService,
     FeedbackService feedback,
     IDiscordRestChannelAPI channelAPI,
     IDiscordRestInteractionAPI interactionAPI,
     InteractionContext context
 )
 {
     _kinks          = kinks;
     _feedback       = feedback;
     _interactionAPI = interactionAPI;
     _context        = context;
     _dataService    = dataService;
     _channelAPI     = channelAPI;
 }
Exemplo n.º 16
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RoleplayCommands"/> class.
 /// </summary>
 /// <param name="discordRoleplays">The roleplay service.</param>
 /// <param name="feedback">The user feedback service.</param>
 /// <param name="dedicatedChannels">The dedicated channel service.</param>
 /// <param name="context">The command context.</param>
 /// <param name="channelAPI">The channel API.</param>
 /// <param name="services">The available services.</param>
 public RoleplayCommands
 (
     RoleplayDiscordService discordRoleplays,
     FeedbackService feedback,
     DedicatedChannelService dedicatedChannels,
     ICommandContext context,
     IDiscordRestChannelAPI channelAPI,
     IServiceProvider services
 )
 {
     _discordRoleplays  = discordRoleplays;
     _feedback          = feedback;
     _dedicatedChannels = dedicatedChannels;
     _context           = context;
     _channelAPI        = channelAPI;
     _services          = services;
 }
Exemplo n.º 17
0
 /// <summary>
 /// Instantiates a new instance of <see cref="MemberApplicationsCommands"/>.
 /// </summary>
 /// <param name="context">The message context.</param>
 /// <param name="channelApi">The channel API.</param>
 /// <param name="mediator">The mediator.</param>
 /// <param name="colourPalette">The colour palette.</param>
 /// <param name="discordSettings">The Discord settings.</param>
 /// <param name="guildApi">The guild API.</param>
 /// <param name="responder">The command responder.</param>
 public MemberApplicationsCommands(
     MessageContext context,
     IDiscordRestChannelAPI channelApi,
     IMediator mediator,
     IColourPalette colourPalette,
     DiscordSettings discordSettings,
     IDiscordRestGuildAPI guildApi,
     ICommandResponder responder
     )
 {
     _context         = context;
     _channelApi      = channelApi;
     _mediator        = mediator;
     _colourPalette   = colourPalette;
     _discordSettings = discordSettings;
     _guildApi        = guildApi;
     _responder       = responder;
 }
Exemplo n.º 18
0
 /// <summary>
 /// Instantiates a new instance of <see cref="Handler"/> class.
 /// </summary>
 /// <param name="context">The DB context.</param>
 /// <param name="ps">The polychat service.</param>
 /// <param name="guildApi">The guild API.</param>
 /// <param name="userApi">The user API.</param>
 /// <param name="channelApi">The channel API.</param>
 /// <param name="colourPalette">The colour palette.</param>
 /// <param name="logger">The logger.</param>
 public Handler(
     BotContext context,
     IPolychatService ps,
     IDiscordRestGuildAPI guildApi,
     IDiscordRestUserAPI userApi,
     IDiscordRestChannelAPI channelApi,
     IColourPalette colourPalette,
     ILogger <Handler> logger
     )
 {
     _context       = context;
     _ps            = ps;
     _guildApi      = guildApi;
     _userApi       = userApi;
     _channelApi    = channelApi;
     _colourPalette = colourPalette;
     _logger        = logger;
 }
Exemplo n.º 19
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CharacterCommands"/> class.
 /// </summary>
 /// <param name="contentService">The content service.</param>
 /// <param name="feedbackService">The feedback service.</param>
 /// <param name="characterService">The character service.</param>
 /// <param name="pronouns">The pronoun service.</param>
 /// <param name="context">The command context.</param>
 /// <param name="guildAPI">The guild API.</param>
 /// <param name="channelAPI">The channel API.</param>
 public CharacterCommands
 (
     ContentService contentService,
     FeedbackService feedbackService,
     CharacterDiscordService characterService,
     PronounService pronouns,
     ICommandContext context,
     IDiscordRestGuildAPI guildAPI,
     IDiscordRestChannelAPI channelAPI
 )
 {
     _content    = contentService;
     _feedback   = feedbackService;
     _characters = characterService;
     _pronouns   = pronouns;
     _context    = context;
     _guildAPI   = guildAPI;
     _channelAPI = channelAPI;
 }
Exemplo n.º 20
0
 public MessageCheckResponder(
     IMessageContentPatternService msgContentPatternSvc,
     IDiscordRestChannelAPI channelApi,
     IDiscordRestUserAPI userApi,
     IDesignatedChannelService designatedChannelService,
     IAuthorizationService authService,
     IAuthorizationContextService remoraAuthService,
     IDeletedMessageRepository deletedRepository,
     IThreadService threadService
     )
 {
     _msgContentPatternSvc = msgContentPatternSvc;
     _channelApi           = channelApi;
     _userApi = userApi;
     _designatedChannelService = designatedChannelService;
     _authService              = authService;
     _remoraAuthService        = remoraAuthService;
     _deletedMessageRepository = deletedRepository;
     _threadSvc = threadService;
 }
 public FeedbackPostedResponder(IDiscordRestChannelAPI channelApi, DiscordSettings discordSettings)
 {
     _channelApi      = channelApi;
     _discordSettings = discordSettings;
 }
Exemplo n.º 22
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RoleParser"/> class.
 /// </summary>
 /// <param name="context">The command context.</param>
 /// <param name="channelAPI">The channel API.</param>
 /// <param name="guildAPI">The guild API.</param>
 public RoleParser(ICommandContext context, IDiscordRestChannelAPI channelAPI, IDiscordRestGuildAPI guildAPI)
 {
     _guildAPI   = guildAPI;
     _context    = context;
     _channelAPI = channelAPI;
 }
Exemplo n.º 23
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HttpCatResponder"/> class.
 /// </summary>
 /// <param name="httpClientFactory">The http client factory.</param>
 /// <param name="channelAPI">The channel API.</param>
 public HttpCatResponder(IHttpClientFactory httpClientFactory, IDiscordRestChannelAPI channelAPI)
 {
     _httpClient = httpClientFactory.CreateClient();
     _channelAPI = channelAPI;
 }
Exemplo n.º 24
0
 public Handler(IDiscordRestChannelAPI channelApi, ILogger <HandleCommandResult> logger, IColourPalette colourPalette)
 {
     _channelApi    = channelApi;
     _logger        = logger;
     _colourPalette = colourPalette;
 }
Exemplo n.º 25
0
 public Handler(IPolychatService polychatService, IDiscordRestChannelAPI channelApi, PolychatSettings polychatSettings)
 {
     _polychatService  = polychatService;
     _channelApi       = channelApi;
     _polychatSettings = polychatSettings;
 }
Exemplo n.º 26
0
 /// <summary>
 /// Instantiates a new instance of <see cref="DmSender"/>.
 /// </summary>
 /// <param name="userApi">The user API.</param>
 /// <param name="channelApi">The channel API.</param>
 public DmSender(IDiscordRestUserAPI userApi, IDiscordRestChannelAPI channelApi)
 {
     _userApi    = userApi;
     _channelApi = channelApi;
 }
Exemplo n.º 27
0
 /// <summary>
 /// Instantiates a new instance of the <see cref="CommandResponder"/>.
 /// </summary>
 /// <param name="context">The message context.</param>
 /// <param name="channelApi">The channel API.</param>
 public CommandResponder(MessageContext context, IDiscordRestChannelAPI channelApi)
 {
     _context    = context;
     _channelApi = channelApi;
 }
Exemplo n.º 28
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ChannelParser"/> class.
 /// </summary>
 /// <param name="channelAPI">The channel API.</param>
 public ChannelParser(IDiscordRestChannelAPI channelAPI)
 {
     _channelAPI = channelAPI;
 }
Exemplo n.º 29
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EchoResponder"/> class.
 /// </summary>
 /// <param name="channelAPI">The <see cref="IDiscordRestChannelAPI"/>.</param>
 public EchoResponder(
     IDiscordRestChannelAPI channelAPI)
 {
     _channelAPI = channelAPI;
 }
 public FeedbackAddressedResponder(IDiscordRestGuildAPI guildApi, IDiscordRestChannelAPI channelApi, DiscordSettings discordSettings)
 {
     _guildApi        = guildApi;
     _channelApi      = channelApi;
     _discordSettings = discordSettings;
 }