The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/packages/rocketchat-slashcommands-join/client.js

10 lines
359 B

RocketChat.slashCommands.add('join', undefined, {
description: 'Join_the_given_channel',
params: '#channel'
}, function(err, result, params) {
if (err.error === 'error-user-already-in-room') {
params.cmd = 'open';
params.msg.msg = params.msg.msg.replace('join', 'open');
return RocketChat.slashCommands.run('open', params.params, params.msg);
}
});