Last active
October 29, 2020 06:10
-
-
Save abrambailey/38a17bb50b8c8674dc8c2f8c54dc0b0d to your computer and use it in GitHub Desktop.
Invite all users to slack channel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var i = 1; | |
function inviteAllUsers() { | |
setTimeout(function () { | |
setTimeout(function() { | |
$('#channel_actions_toggle').click(); | |
},100) | |
setTimeout(function() { | |
$('#channel_invite_item').click(); | |
},200) | |
setTimeout(function() { | |
if ($('.lfs_item').length == 0) { | |
i = 0; | |
} | |
$('.lfs_item').each(function(i, obj) { | |
this.click(); | |
}); | |
},300) | |
setTimeout(function() { | |
$('.invite_go').click() | |
},400) | |
if (i == 1) { | |
inviteAllUsers(); | |
} | |
}, 4000) | |
} | |
inviteAllUsers(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Update - Oct 2020. If you are looking for a no-code solution, you can use Channel Tools app to invite all users to a Slack channel.