Refuse a bot token without a channel
Saving a token and leaving the channel empty produced a state that could neither send nor delete, and only said so at the next attempt.
This commit is contained in:
+4
-2
@@ -298,7 +298,8 @@
|
||||
"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?"
|
||||
"runNotFound": "No matching message found in the channel. Does the bot still need channels:history?",
|
||||
"channelRequired": "A bot token needs a channel, otherwise Logbuch has no target."
|
||||
},
|
||||
"errors": {
|
||||
"nameRequired": "Enter a name.",
|
||||
@@ -759,7 +760,8 @@
|
||||
},
|
||||
"errors": {
|
||||
"webhookInvalid": "That does not look like a Slack webhook address.",
|
||||
"tokenInvalid": "A bot token starts with xoxb or xoxp."
|
||||
"tokenInvalid": "A bot token starts with xoxb or xoxp.",
|
||||
"channelRequired": "A bot token needs a channel."
|
||||
},
|
||||
"tokenStored": "Stored, no longer shown.",
|
||||
"replaceToken": "Enter a different token",
|
||||
|
||||
Reference in New Issue
Block a user