Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

force the bot sending messages through API; this commit closes issue … #474

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/Slackbot_worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ module.exports = function(botkit, config) {
* so if they are specified, we use the web API to send messages.
*/
if (message.attachments || message.icon_emoji ||
message.username || message.icon_url) {
message.username || message.icon_url || config.forceAPIcall) {

if (!bot.config.token) {
throw new Error('Cannot use web API to send messages.');
Expand Down