Skip to content

Commit

Permalink
api: add chatters check for getChannelChattersUnofficialAPI
Browse files Browse the repository at this point in the history
[skip-tests]
  • Loading branch information
sogehige committed Feb 7, 2019
1 parent 11e159e commit c06a835
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bot/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,10 @@ class API {
return { state: false, opts }
}

if (typeof request.data.chatters === 'undefined') {
return { state: true };
}

const chatters = _.flatMap(request.data.chatters)
this.setModerators(request.data.chatters.moderators);

Expand Down

0 comments on commit c06a835

Please sign in to comment.