Refactor chat message deletion methods in moderation and link filter modules. Updated to use delete_chat_message instead of delete_chat_messages for improved clarity and consistency in message handling.

This commit is contained in:
2026-03-10 18:45:55 +01:00
parent d7b78ec1c4
commit c8c1e0c283
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -122,7 +122,7 @@ async def _handle_unauthorized_link(msg: ChatMessage, twitch: Twitch, config: di
logger.error(f"Erreur timeout link filter: {e}")
try:
await twitch.delete_chat_messages(broadcaster_id, moderator_id, message_id=msg.id)
await twitch.delete_chat_message(broadcaster_id, moderator_id, message_id=msg.id)
except Exception as e:
logger.error(f"Erreur suppression message: {e}")