diff --git a/kdb-bot/src/bot_core/abc/message_service_abc.py b/kdb-bot/src/bot_core/abc/message_service_abc.py index 2719b313..3dada9a3 100644 --- a/kdb-bot/src/bot_core/abc/message_service_abc.py +++ b/kdb-bot/src/bot_core/abc/message_service_abc.py @@ -25,7 +25,9 @@ class MessageServiceABC(ABC): self, channel: discord.TextChannel, message: Union[str, discord.Embed], - without_tracking=True, + is_persistent: bool = False, + wait_before_delete: int = None, + without_tracking=False, ): pass diff --git a/kdb-bot/src/modules/base/service/user_warnings_service.py b/kdb-bot/src/modules/base/service/user_warnings_service.py index d80a674c..a67d3258 100644 --- a/kdb-bot/src/modules/base/service/user_warnings_service.py +++ b/kdb-bot/src/modules/base/service/user_warnings_service.py @@ -57,7 +57,9 @@ class UserWarningsService: else: translation = self._t.transform("modules.base.warnings.team_warned").format(member.mention, description) - self._bot.loop.create_task(self._message_service.send_channel_message(channel, translation)) + self._bot.loop.create_task( + self._message_service.send_channel_message(channel, translation, is_persistent=True) + ) except Exception as e: self._logger.error(__name__, f"Team notification for user warning failed!", e)