Merge pull request #29 from austinhuang0131/patch-1

Solved the issue on my bot: Blame API channel_post update!
This commit is contained in:
Mahdi Dibaiee 2016-11-22 22:13:26 +03:30 committed by GitHub
commit 9af30d527e

View File

@ -170,7 +170,7 @@ export default class Bot extends EventEmitter {
} }
update.forEach(res => { update.forEach(res => {
const msg = res.message || res.edited_message; const msg = res.message || res.edited_message || res.channel_post;
let text = msg.text; let text = msg.text;
if (!text) { if (!text) {
return; return;