Skip to content

converted slashcommand-me coffee to js#6468

Merged
engelgabriel merged 3 commits into
RocketChat:developfrom
ggazzo:slashcommand-me
Mar 29, 2017
Merged

converted slashcommand-me coffee to js#6468
engelgabriel merged 3 commits into
RocketChat:developfrom
ggazzo:slashcommand-me

Conversation

@ggazzo

@ggazzo ggazzo commented Mar 24, 2017

Copy link
Copy Markdown
Member

@RocketChat/core

@engelgabriel

Copy link
Copy Markdown
Member

I think you forgot to delete the old file.

@ggazzo

ggazzo commented Mar 24, 2017

Copy link
Copy Markdown
Member Author

@engelgabriel fixed

* Me is a named function that will replace /me commands
* @param {Object} message - The message object
*/
const Me = function(command, params, item) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we use named functions instead of variables?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes please, as that helps with stacktraces so that the functions in the traces are named and not "anonymous"

@engelgabriel engelgabriel modified the milestone: 0.55.0 Mar 29, 2017
@engelgabriel engelgabriel merged commit 0c21399 into RocketChat:develop Mar 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants