Class CommonServices

    • Field Detail

      • BOT

        public static final com.github.alex1304.rdi.ServiceReference<BotService> BOT
      • GATEWAY_DISCORD_CLIENT

        public static final com.github.alex1304.rdi.ServiceReference<discord4j.core.GatewayDiscordClient> GATEWAY_DISCORD_CLIENT
      • COMMAND_SERVICE

        public static final com.github.alex1304.rdi.ServiceReference<CommandService> COMMAND_SERVICE
      • DATABASE_SERVICE

        public static final com.github.alex1304.rdi.ServiceReference<DatabaseService> DATABASE_SERVICE
      • EMOJI_SERVICE

        public static final com.github.alex1304.rdi.ServiceReference<EmojiService> EMOJI_SERVICE
      • INTERACTIVE_MENU_SERVICE

        public static final com.github.alex1304.rdi.ServiceReference<InteractiveMenuService> INTERACTIVE_MENU_SERVICE
      • LOCALIZATION_SERVICE

        public static final com.github.alex1304.rdi.ServiceReference<LocalizationService> LOCALIZATION_SERVICE
      • LOGGING_SERVICE

        public static final com.github.alex1304.rdi.ServiceReference<LoggingService> LOGGING_SERVICE
      • PLUGIN_METADATA_SERVICE

        public static final com.github.alex1304.rdi.ServiceReference<PluginMetadataService> PLUGIN_METADATA_SERVICE
    • Constructor Detail

      • CommonServices

        public CommonServices()
    • Method Detail

      • declareServices

        public Set<com.github.alex1304.rdi.config.ServiceDescriptor> declareServices​(BotConfig botConfig)
        Description copied from interface: ServiceDeclarator
        Declares service descriptors to register to the bot's service container.
        Specified by:
        declareServices in interface ServiceDeclarator
        Parameters:
        botConfig - the bot configuration
        Returns:
        a Set containing services to declare