-
Notifications
You must be signed in to change notification settings - Fork 10.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
converted slashcommands-mute coffee to js #6474
Conversation
* Mute is a named function that will replace /mute commands | ||
*/ | ||
|
||
const Mute = function Mute(command, params, item) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need the const Mute
?
}); | ||
return; | ||
} | ||
if ((room.usernames || []).contains(username)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
contains
does not exists, the correct is includes
* Unmute is a named function that will replace /unmute commands | ||
*/ | ||
|
||
const Unmute = function Unmute(command, params, item) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here :)
}, user.language) | ||
}); | ||
} | ||
if ((room.usernames || []).contains(username)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
cc7ab18
to
90943e7
Compare
90943e7
to
c5026c6
Compare
@RocketChat/core