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:
+2
-2
@@ -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.",
|
||||
|
||||
Reference in New Issue
Block a user