Fixed remove warning team notification #270 #271

Merged
edraft merged 6 commits from #270 into 1.0.1 2023-03-28 23:39:42 +02:00
2 changed files with 6 additions and 2 deletions
Showing only changes of commit 4debe4e2ba - Show all commits

View File

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

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)