Testing how to remove blocks from an existing msg
This commit is contained in:
parent
feb272aeb1
commit
feafb6c9a9
|
|
@ -266,7 +266,7 @@ class ClientWrapper(object):
|
|||
raise ValueError("Can't broadcast a non-threaded message. Try again.")
|
||||
|
||||
# Set blocks iff provided.
|
||||
if blocks:
|
||||
if blocks is not None:
|
||||
kwargs["blocks"] = blocks
|
||||
|
||||
return self.api_call(api_method, **kwargs)
|
||||
|
|
|
|||
|
|
@ -190,7 +190,7 @@ class TestPassive(hooks.Passive):
|
|||
client.get_slack().edit_message(response, event.conversation.conversation_id, event.message.ts, None)
|
||||
|
||||
def on_expire():
|
||||
client.get_slack().edit_message("Timed out", "#botzone", msg_ts, None)
|
||||
client.get_slack().edit_message("Timed out", "#botzone", msg_ts, [])
|
||||
|
||||
# Add a listener
|
||||
listener = hooks.InteractionListener(on_click,
|
||||
|
|
|
|||
Loading…
Reference in New Issue