From 8fe9772db39031bca47728d9822dda004d7b17dd Mon Sep 17 00:00:00 2001 From: Kaveen Kumarasinghe Date: Thu, 12 Jan 2023 18:34:01 -0500 Subject: [PATCH] add reaction to warned messages --- models/moderations_service_model.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/models/moderations_service_model.py b/models/moderations_service_model.py index 395ea6f..72bf3da 100644 --- a/models/moderations_service_model.py +++ b/models/moderations_service_model.py @@ -188,6 +188,12 @@ class Moderation: to_moderate.message ), ) + # Attempt to react to the to_moderate.message with a warning icon + try: + await to_moderate.message.add_reaction("⚠️") + except discord.errors.Forbidden: + pass + await response_message.edit( view=ModerationAdminView( to_moderate.message, response_message