Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@abrambailey
Last active October 29, 2020 06:10
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abrambailey/38a17bb50b8c8674dc8c2f8c54dc0b0d to your computer and use it in GitHub Desktop.
Save abrambailey/38a17bb50b8c8674dc8c2f8c54dc0b0d to your computer and use it in GitHub Desktop.
Invite all users to slack channel
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();
@jaipandya
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment