Delete webhook messages too by looking up their id

A message sent through the webhook has no stored id, but it belongs to the
same Slack app, so the bot token may remove it. The delete button now looks
the message up in the channel by its text and time before deleting.
This commit is contained in:
Matthias G
2026-08-03 12:53:13 +02:00
parent 81d0489c78
commit 768bbca59c
7 changed files with 80 additions and 17 deletions
+7 -3
View File
@@ -295,7 +295,10 @@
"runNotDeletable": "That run went through the webhook, so there is no message id.",
"runNoToken": "Without a bot token nothing can be deleted in Slack.",
"runDeleteFailed": "Slack refused the deletion.",
"tokenInvalid": "A bot token starts with xoxb or xoxp."
"tokenInvalid": "A bot token starts with xoxb or xoxp.",
"runNotSent": "That run sent no message.",
"runNoChannel": "No channel is stored.",
"runNotFound": "No matching message found in the channel. Does the bot still need channels:history?"
},
"errors": {
"nameRequired": "Enter a name.",
@@ -763,10 +766,11 @@
"messageDelete": "Delete in Slack",
"messageDeleting": "Deleting",
"messageDeleted": "Deleted",
"messageWebhook": "Sent by webhook, cannot be deleted",
"messageWebhook": "Sent by webhook, id will be looked up",
"pathBot": "Sending through the bot token. Messages can be deleted from here.",
"pathWebhook": "Sending through the webhook. Messages cannot be deleted afterwards, that needs a bot token.",
"pathNone": "No route stored yet, nothing goes out."
"pathNone": "No route stored yet, nothing goes out.",
"messageNoToken": "Not deletable without a bot token"
}
},
"filter": {