Skip to content

Instantly share code, notes, and snippets.

@lamey
lamey / slack-invite-all-members-to-a-channel.js
Last active February 24, 2018 00:26 — forked from ZackStone/slack-invite-all-members-to-a-channel.js
Invite all team members to a Slack channel
/*
https://webapps.stackexchange.com/questions/100820/how-do-i-invite-all-team-members-to-a-new-slack-channel#answer-104062
Instructions: Just browse to the appropriate channel and paste
this script (below) into your Chrome/Firefox dev console and hit enter.
Then wait for the script to run until it completes.
It might take time as there is a limit to how many users may be invited at once.
The script will loop until all team members are invited.
*/
var foundAny=false;
function selectAllByLetter(remainingLetters) {