Fixed remove warning team notification #270

This commit is contained in:
2023-03-28 15:01:35 +02:00
parent 75ad07477a
commit 4debe4e2ba
2 changed files with 6 additions and 2 deletions

View File

@@ -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)