Stop offering deletion Slack refuses

chat.delete only removes what the bot posted itself, so webhook messages
answer cant_delete_message no matter how the id is found. Runs without a
stored id now say so instead of leading into a dead end.
This commit is contained in:
Matthias G
2026-08-03 13:19:20 +02:00
parent 7e2a00842e
commit 78ff7d2c3f
4 changed files with 15 additions and 7 deletions
+2 -2
View File
@@ -292,7 +292,7 @@
"reportRejected": "Slack rejected the message.",
"messageDeleted": "The message is deleted in Slack.",
"runUnknown": "That run does not exist.",
"runNotDeletable": "That run went through the webhook, so there is no message id.",
"runNotDeletable": "That message came from the webhook. Slack only lets the bot delete what it posted itself.",
"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.",
@@ -769,7 +769,7 @@
"messageDelete": "Delete in Slack",
"messageDeleting": "Deleting",
"messageDeleted": "Deleted",
"messageWebhook": "Sent by webhook, id will be looked up",
"messageWebhook": "Sent by webhook, only deletable in Slack",
"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.",