diff --git a/extensions/hooks/buttons.py b/extensions/hooks/buttons.py index 2213d84..f49bf18 100644 --- a/extensions/hooks/buttons.py +++ b/extensions/hooks/buttons.py @@ -75,7 +75,7 @@ def buttons_hook(message: DiscordMessage, metadata: DiscordMessageMetadata, cont if "undo" in action_buttons and context.event == "edit": add_button(message, BUTTON_PREFIX + " undo " + str(change["pageid"]) + " " + str(change["revid"]), action_buttons["undo"], 2, {"id": None, "name": "🔂"}) - if "thank" in action_buttons: + if "thank" in action_buttons and context.event != "suppressed": if change["type"] == "log": add_button(message, BUTTON_PREFIX + " thank log " + str(change["logid"]), action_buttons["thank"], 3, {"id": None, "name": "👍"})