diff --git a/src/interactions/leaderAdd.js b/src/interactions/leaderAdd.js index 82c1428..f0e9e78 100644 --- a/src/interactions/leaderAdd.js +++ b/src/interactions/leaderAdd.js @@ -36,6 +36,18 @@ const interactionLeaderAdd = async (bot, message) => { Clubs: [...taggedUserClubs, recipientClub.id], }) + // invite leader to #leaders and their club channel + bot.api.conversations.invite({ + token: bot.config.bot.access_token, + channel, + users: taggedUserID + }) + bot.api.conversations.invite({ + token: bot.config.bot.access_token, + channel: 'GAE0FFNFN', + users: taggedUserID + }) + bot.replyPrivateDelayed( message, transcript('leaderAdd.success', { taggedUserID, channel })