UNPKG

hubot-slack

Version:
16 lines (13 loc) 510 B
class SlackMention ###* # SlackMention is an instance of a mention within a SlackTextMessage. # @constructor # @param {string} id - The user or conversation id that the mention references # @param {string} type - The type of mention ('user' or 'conversation') # @param {Object} info - An object with additional info about the message reference, not guaranteed ### constructor: (id, type, info) -> @id = id @type = type @info = if info? then info else undefined module.exports = SlackMention