From d1b27a68132b9e9a6e5b6ca0aaea1d4de222496a Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Mon, 15 Nov 2021 15:52:22 -0800 Subject: [PATCH] Fix "New Hunt" button to actually call new_hunt_button function Was previously calling new_hunt function directly which cannot work. --- turbot/interaction.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/turbot/interaction.py b/turbot/interaction.py index 580aad5..4a36b71 100644 --- a/turbot/interaction.py +++ b/turbot/interaction.py @@ -501,6 +501,7 @@ def new_hunt_command(turb, body): def new_hunt_button(turb, payload): """Handler for the action of user pressing the new_hunt button""" + print("In new_hunt_button with payload of: " + str(payload)) trigger_id = payload['trigger_id'] return new_hunt(turb, trigger_id) @@ -534,7 +535,7 @@ def new_hunt(turb, trigger_id): return lambda_ok -actions['button']['new_hunt'] = new_hunt +actions['button']['new_hunt'] = new_hunt_button def new_hunt_submission(turb, payload, metadata): """Handler for the user submitting the new hunt modal -- 2.43.0