File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
slack-api-client/src/test/java/test_with_remote_apis/methods Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -227,11 +227,11 @@ public void channelConversation() throws Exception {
227227 assertThat (membersResponse .getResponseMetadata (), is (notNullValue ()));
228228
229229 // Using async client to avoid an exception due to rate limited errors
230- UsersListResponse usersListResponse = slack .methodsAsync ().usersList (r -> r
231- .token (botToken )).get ();
230+ UsersListResponse usersListResponse = slack .methodsAsync ().usersList (r -> r .token (botToken )).get ();
232231 String invitee_ = null ;
233232 for (User u : usersListResponse .getMembers ()) {
234233 if (!"USLACKBOT" .equals (u .getId ())
234+ && !u .isBot ()
235235 && !membersResponse .getMembers ().contains (u .getId ())
236236 && !u .isRestricted ()
237237 && !u .isUltraRestricted ()) {
You can’t perform that action at this time.
0 commit comments