]> git.cworth.org Git - turbot/commit
Drop use of response_url in button handlers
authorCarl Worth <cworth@cworth.org>
Mon, 11 Jan 2021 17:54:57 +0000 (09:54 -0800)
committerCarl Worth <cworth@cworth.org>
Mon, 11 Jan 2021 17:54:57 +0000 (09:54 -0800)
commit4f902f0849ca59389d2e9f08bc015e3eb9c63164
treef09386989cc96ad0168f735a25b70e5be1d0e54b
parentd124e7cc2c8d6b4e7cc0f86d452fef61081590b4
Drop use of response_url in button handlers

Some buttons appear in a context, (like the app's "Home" view), where
there is no response_url, (we can't generate a message there). So we
can't rely on this. And we don't need to anyway, we can use the string
in the reteurn value to get an error message out to the user.

This commit should fix a bunch of broken puzzle edits button in the
Turbot "home" view.
turbot/interaction.py