Skip to content

Commit

Permalink
Updates the map of RTM events.
Browse files Browse the repository at this point in the history
Fixes #208
  • Loading branch information
l12s committed May 10, 2016
1 parent 4708d06 commit 82762ad
Showing 1 changed file with 24 additions and 12 deletions.
36 changes: 24 additions & 12 deletions lib/clients/events/rtm.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@

module.exports.EVENTS = {
ACCOUNTS_CHANGED: 'accounts_changed',
COMMANDS_CHANGED: 'commands_changed',
EMAIL_DOMAIN_CHANGED: 'email_domain_changed',
EMOJI_CHANGED: 'emoji_changed',
HELLO: 'hello',
MANUAL_PRESENCE_CHANGE: 'manual_presence_change',
MESSAGE: 'message',
PREF_CHANGE: 'pref_change',
PRESENCE_CHANGE: 'presence_change',
BOT_ADDED: 'bot_added',
BOT_CHANGED: 'bot_changed',
CHANNEL_ARCHIVE: 'channel_archive',
Expand All @@ -25,6 +17,11 @@ module.exports.EVENTS = {
CHANNEL_MARKED: 'channel_marked',
CHANNEL_RENAME: 'channel_rename',
CHANNEL_UNARCHIVE: 'channel_unarchive',
COMMANDS_CHANGED: 'commands_changed',
DND_UPDATED: 'dnd_updated',
DND_UPDATED_USER: 'dnd_updated_user',
EMAIL_DOMAIN_CHANGED: 'email_domain_changed',
EMOJI_CHANGED: 'emoji_changed',
FILE_CHANGE: 'file_change',
FILE_COMMENT_ADDED: 'file_comment_added',
FILE_COMMENT_DELETED: 'file_comment_deleted',
Expand All @@ -44,35 +41,47 @@ module.exports.EVENTS = {
GROUP_OPEN: 'group_open',
GROUP_RENAME: 'group_rename',
GROUP_UNARCHIVE: 'group_unarchive',
HELLO: 'hello',
IM_CLOSE: 'im_close',
IM_CREATED: 'im_created',
IM_HISTORY_CHANGED: 'im_history_changed',
IM_MARKED: 'im_marked',
IM_OPEN: 'im_open',
MANUAL_PRESENCE_CHANGE: 'manual_presence_change',
MESSAGE: 'message',
MPIM_CLOSE: 'mpim_close',
MPIM_HISTORY_CHANGED: 'mpim_history_changed',
MPIM_JOINED: 'mpim_joined',
MPIM_OPEN: 'mpim_open',
PIN_ADDED: 'pin_added',
PIN_REMOVED: 'pin_removed',
PREF_CHANGE: 'pref_change',
PRESENCE_CHANGE: 'presence_change',
REACTION_ADDED: 'reaction_added',
REACTION_REMOVED: 'reaction_removed',
RECONNECT_URL: 'reconnect_url',
STAR_ADDED: 'star_added',
STAR_REMOVED: 'star_removed',
SUBTEAM_CREATED: 'subteam_created',
SUBTEAM_SELF_ADDED: 'subteam_self_added',
SUBTEAM_SELF_REMOVED: 'subteam_self_removed',
SUBTEAM_UPDATED: 'subteam_updated',
TEAM_DOMAIN_CHANGE: 'team_domain_change',
TEAM_JOIN: 'team_join',
TEAM_MIGRATION_STARTED: 'team_migration_started',
TEAM_PLAN_CHANGE: 'team_plan_change',
TEAM_PREF_CHANGE: 'team_pref_change',
TEAM_PROFILE_CHANGE: 'team_profile_change',
TEAM_PROFILE_DELETE: 'team_profile_delete',
TEAM_PROFILE_REORDER: 'team_profile_reorder',
TEAM_RENAME: 'team_rename',
USER_CHANGE: 'user_change',
USER_TYPING: 'user_typing'
};


module.exports.MESSAGE_SUBTYPES = {
BOT_MESSAGE: 'bot_message',
ME_MESSAGE: 'me_message',
PINNED_ITEM: 'pinned_item',
UNPINNED_ITEM: 'unpinned_item',
CHANNEL_ARCHIVE: 'channel_archive',
CHANNEL_JOIN: 'channel_join',
CHANNEL_LEAVE: 'channel_leave',
Expand All @@ -90,6 +99,9 @@ module.exports.MESSAGE_SUBTYPES = {
GROUP_PURPOSE: 'group_purpose',
GROUP_TOPIC: 'group_topic',
GROUP_UNARCHIVE: 'group_unarchive',
ME_MESSAGE: 'me_message',
MESSAGE_CHANGED: 'message_changed',
MESSAGE_DELETED: 'message_deleted'
MESSAGE_DELETED: 'message_deleted',
PINNED_ITEM: 'pinned_item',
UNPINNED_ITEM: 'unpinned_item'
};

0 comments on commit 82762ad

Please sign in to comment.