Added support to set cached max_message by config #178

This commit is contained in:
2023-01-12 09:20:14 +01:00
parent 2a0e3d77b7
commit 3811cf7d74
6 changed files with 39 additions and 6 deletions

View File

@@ -44,7 +44,8 @@ class Application(DiscordBotApplicationABC):
try:
self._logger.debug(__name__, f'Starting...')
if self._feature_flags.get_flag(FeatureFlagsEnum.api_module) and self._feature_flags.get_flag(FeatureFlagsEnum.api_only) and self._environment.environment_name == 'development':
if self._feature_flags.get_flag(FeatureFlagsEnum.api_module) and self._feature_flags.get_flag(
FeatureFlagsEnum.api_only) and self._environment.environment_name == 'development':
self._api.start()
self._api.join()
return