-
Notifications
You must be signed in to change notification settings - Fork 635
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #413 from github/restore_rawText
Return rawText and rawMessage objects
- Loading branch information
Showing
4 changed files
with
41 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{TextMessage} = require.main.require 'hubot' | ||
|
||
class SlackTextMessage extends TextMessage | ||
# Represents a TextMessage created from the Slack adapter | ||
# | ||
# user - The User object | ||
# text - The parsed message text | ||
# rawText - The unparsed message text | ||
# rawMessage - The Slack Message object | ||
constructor: (@user, @text, @rawText, @rawMessage) -> | ||
super @user, @text, @rawMessage.ts | ||
|
||
module.exports = SlackTextMessage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters