(s: slackAuthorizations)
| 269 | } |
| 270 | |
| 271 | function isAllowToSendMessages(s: slackAuthorizations): boolean { |
| 272 | return s.scope.indexOf('chat:write') > -1; |
| 273 | } |
| 274 | |
| 275 | function isAllowToCustomizeAuthor(slackToken: slackAuthorizations): boolean { |
| 276 | return slackToken.scope.indexOf('chat:write.customize') > -1; |