mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-23 00:24:09 +00:00
don't thank suppressed
This commit is contained in:
parent
0f18965bcd
commit
4f62f9fb7f
|
@ -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": "👍"})
|
||||
|
|
Loading…
Reference in a new issue