lib/slack/real_time/stores/starter.rb in slack-ruby-client-0.10.0 vs lib/slack/real_time/stores/starter.rb in slack-ruby-client-0.11.0
- old
+ new
@@ -14,395 +14,395 @@
### RealTime Events
# The membership of an existing User Group has changed.
# @see https://api.slack.com/events/subteam_members_changed
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/subteam_members_changed.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/subteam_members_changed.json
# on :subteam_members_changed do |data|
# Subscribe to presence events for the specified users.
# @see https://api.slack.com/events/presence_sub
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/presence_sub.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/presence_sub.json
# on :presence_sub do |data|
# A user left a public or private channel.
# @see https://api.slack.com/events/member_left_channel
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/member_left_channel.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/member_left_channel.json
# on :member_left_channel do |data|
# A user joined a public or private channel.
# @see https://api.slack.com/events/member_joined_channel
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/member_joined_channel.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/member_joined_channel.json
# on :member_joined_channel do |data|
# The server intends to close the connection soon..
# @see https://api.slack.com/events/goodbye
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/goodbye.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/goodbye.json
# on :goodbye do |data|
# Verifies ownership of an Events API Request URL.
# @see https://api.slack.com/events/url_verification
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/url_verification.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/url_verification.json
# on :url_verification do |data|
# A message was posted in a multiparty direct message channel.
# @see https://api.slack.com/events/message.mpim
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/message.mpim.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/message.mpim.json
# on :message.mpim do |data|
# A message was posted in a direct message channel.
# @see https://api.slack.com/events/message.im
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/message.im.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/message.im.json
# on :message.im do |data|
# A message was posted to a private channel.
# @see https://api.slack.com/events/message.groups
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/message.groups.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/message.groups.json
# on :message.groups do |data|
# A message was posted to a channel.
# @see https://api.slack.com/events/message.channels
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/message.channels.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/message.channels.json
# on :message.channels do |data|
# A channel member is typing a message.
# @see https://api.slack.com/events/user_typing
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/user_typing.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/user_typing.json
# on :user_typing do |data|
# A team member's data has changed.
# @see https://api.slack.com/events/user_change
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/user_change.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/user_change.json
# on :user_change do |data|
# A new team member has joined.
# @see https://api.slack.com/events/team_join
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/team_join.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/team_join.json
# on :team_join do |data|
# An existing user group has been updated or its members changed.
# @see https://api.slack.com/events/subteam_updated
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/subteam_updated.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/subteam_updated.json
# on :subteam_updated do |data|
# You have been removed from a user group.
# @see https://api.slack.com/events/subteam_self_removed
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/subteam_self_removed.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/subteam_self_removed.json
# on :subteam_self_removed do |data|
# You have been added to a user group.
# @see https://api.slack.com/events/subteam_self_added
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/subteam_self_added.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/subteam_self_added.json
# on :subteam_self_added do |data|
# A user group has been added to the team.
# @see https://api.slack.com/events/subteam_created
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/subteam_created.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/subteam_created.json
# on :subteam_created do |data|
# A team member removed a star.
# @see https://api.slack.com/events/star_removed
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/star_removed.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/star_removed.json
# on :star_removed do |data|
# A team member has starred an item.
# @see https://api.slack.com/events/star_added
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/star_added.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/star_added.json
# on :star_added do |data|
# Experimental.
# @see https://api.slack.com/events/reconnect_url
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/reconnect_url.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/reconnect_url.json
# on :reconnect_url do |data|
# A team member removed an emoji reaction.
# @see https://api.slack.com/events/reaction_removed
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/reaction_removed.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/reaction_removed.json
# on :reaction_removed do |data|
# A team member has added an emoji reaction to an item.
# @see https://api.slack.com/events/reaction_added
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/reaction_added.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/reaction_added.json
# on :reaction_added do |data|
# A team member's presence changed.
# @see https://api.slack.com/events/presence_change
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/presence_change.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/presence_change.json
# on :presence_change do |data|
# You have updated your preferences.
# @see https://api.slack.com/events/pref_change
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/pref_change.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/pref_change.json
# on :pref_change do |data|
# A pin was removed from a channel.
# @see https://api.slack.com/events/pin_removed
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/pin_removed.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/pin_removed.json
# on :pin_removed do |data|
# A pin was added to a channel.
# @see https://api.slack.com/events/pin_added
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/pin_added.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/pin_added.json
# on :pin_added do |data|
# You manually updated your presence.
# @see https://api.slack.com/events/manual_presence_change
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/manual_presence_change.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/manual_presence_change.json
# on :manual_presence_change do |data|
# You opened a direct message channel.
# @see https://api.slack.com/events/im_open
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/im_open.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/im_open.json
# on :im_open do |data|
# A direct message read marker was updated.
# @see https://api.slack.com/events/im_marked
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/im_marked.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/im_marked.json
# on :im_marked do |data|
# Bulk updates were made to a DM channel's history.
# @see https://api.slack.com/events/im_history_changed
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/im_history_changed.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/im_history_changed.json
# on :im_history_changed do |data|
# A direct message channel was created.
# @see https://api.slack.com/events/im_created
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/im_created.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/im_created.json
# on :im_created do |data|
# You closed a direct message channel.
# @see https://api.slack.com/events/im_close
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/im_close.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/im_close.json
# on :im_close do |data|
# A private group was unarchived.
# @see https://api.slack.com/events/group_unarchive
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/group_unarchive.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/group_unarchive.json
# on :group_unarchive do |data|
# A private group was renamed.
# @see https://api.slack.com/events/group_rename
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/group_rename.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/group_rename.json
# on :group_rename do |data|
# You opened a group channel.
# @see https://api.slack.com/events/group_open
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/group_open.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/group_open.json
# on :group_open do |data|
# A private group read marker was updated.
# @see https://api.slack.com/events/group_marked
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/group_marked.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/group_marked.json
# on :group_marked do |data|
# You left a private group.
# @see https://api.slack.com/events/group_left
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/group_left.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/group_left.json
# on :group_left do |data|
# You joined a private group.
# @see https://api.slack.com/events/group_joined
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/group_joined.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/group_joined.json
# on :group_joined do |data|
# Bulk updates were made to a group's history.
# @see https://api.slack.com/events/group_history_changed
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/group_history_changed.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/group_history_changed.json
# on :group_history_changed do |data|
# You closed a group channel.
# @see https://api.slack.com/events/group_close
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/group_close.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/group_close.json
# on :group_close do |data|
# A private group was archived.
# @see https://api.slack.com/events/group_archive
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/group_archive.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/group_archive.json
# on :group_archive do |data|
# A file was unshared.
# @see https://api.slack.com/events/file_unshared
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/file_unshared.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/file_unshared.json
# on :file_unshared do |data|
# A file was shared.
# @see https://api.slack.com/events/file_shared
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/file_shared.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/file_shared.json
# on :file_shared do |data|
# A file was made public.
# @see https://api.slack.com/events/file_public
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/file_public.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/file_public.json
# on :file_public do |data|
# A file was made private.
# @see https://api.slack.com/events/file_private
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/file_private.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/file_private.json
# on :file_private do |data|
# A file was deleted.
# @see https://api.slack.com/events/file_deleted
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/file_deleted.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/file_deleted.json
# on :file_deleted do |data|
# A file was created.
# @see https://api.slack.com/events/file_created
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/file_created.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/file_created.json
# on :file_created do |data|
# A file comment was edited.
# @see https://api.slack.com/events/file_comment_edited
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/file_comment_edited.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/file_comment_edited.json
# on :file_comment_edited do |data|
# A file comment was deleted.
# @see https://api.slack.com/events/file_comment_deleted
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/file_comment_deleted.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/file_comment_deleted.json
# on :file_comment_deleted do |data|
# A file comment was added.
# @see https://api.slack.com/events/file_comment_added
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/file_comment_added.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/file_comment_added.json
# on :file_comment_added do |data|
# A file was changed.
# @see https://api.slack.com/events/file_change
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/file_change.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/file_change.json
# on :file_change do |data|
# A team custom emoji has been added or changed.
# @see https://api.slack.com/events/emoji_changed
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/emoji_changed.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/emoji_changed.json
# on :emoji_changed do |data|
# Do not Disturb settings changed for a team member.
# @see https://api.slack.com/events/dnd_updated_user
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/dnd_updated_user.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/dnd_updated_user.json
# on :dnd_updated_user do |data|
# Do not Disturb settings changed for the current user.
# @see https://api.slack.com/events/dnd_updated
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/dnd_updated.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/dnd_updated.json
# on :dnd_updated do |data|
# A team slash command has been added or changed.
# @see https://api.slack.com/events/commands_changed
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/commands_changed.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/commands_changed.json
# on :commands_changed do |data|
# A team channel was unarchived.
# @see https://api.slack.com/events/channel_unarchive
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/channel_unarchive.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/channel_unarchive.json
# on :channel_unarchive do |data|
# A team channel was renamed.
# @see https://api.slack.com/events/channel_rename
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/channel_rename.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/channel_rename.json
# on :channel_rename do |data|
# Your channel read marker was updated.
# @see https://api.slack.com/events/channel_marked
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/channel_marked.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/channel_marked.json
# on :channel_marked do |data|
# You left a channel.
# @see https://api.slack.com/events/channel_left
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/channel_left.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/channel_left.json
# on :channel_left do |data|
# You joined a channel.
# @see https://api.slack.com/events/channel_joined
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/channel_joined.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/channel_joined.json
# on :channel_joined do |data|
# Bulk updates were made to a channel's history.
# @see https://api.slack.com/events/channel_history_changed
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/channel_history_changed.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/channel_history_changed.json
# on :channel_history_changed do |data|
# A team channel was deleted.
# @see https://api.slack.com/events/channel_deleted
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/channel_deleted.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/channel_deleted.json
# on :channel_deleted do |data|
# A team channel was created.
# @see https://api.slack.com/events/channel_created
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/channel_created.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/channel_created.json
# on :channel_created do |data|
# A team channel was archived.
# @see https://api.slack.com/events/channel_archive
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/channel_archive.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/channel_archive.json
# on :channel_archive do |data|
# An integration bot was changed.
# @see https://api.slack.com/events/bot_changed
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/bot_changed.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/bot_changed.json
# on :bot_changed do |data|
# An integration bot was added.
# @see https://api.slack.com/events/bot_added
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/bot_added.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/bot_added.json
# on :bot_added do |data|
# The list of accounts a user is signed into has changed.
# @see https://api.slack.com/events/accounts_changed
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/accounts_changed.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/accounts_changed.json
# on :accounts_changed do |data|
# The team domain has changed.
# @see https://api.slack.com/events/team_domain_change
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/team_domain_change.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/team_domain_change.json
on :team_domain_change do |data|
team.url = data.url
team.domain = data.domain
end
# The team is being migrated between servers.
# @see https://api.slack.com/events/team_migration_started
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/team_migration_started.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/team_migration_started.json
# on :team_migration_started do |data|
# The team billing plan has changed.
# @see https://api.slack.com/events/team_plan_change
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/team_plan_change.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/team_plan_change.json
on :team_plan_change do |data|
team.plan = data.plan
end
# A team preference has been updated.
# @see https://api.slack.com/events/team_pref_change
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/team_pref_change.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/team_pref_change.json
on :team_pref_change do |data|
team.prefs ||= {}
team.prefs[data.name] = data.value
end
# Team profile fields have been updated.
# @see https://api.slack.com/events/team_profile_change
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/team_profile_change.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/team_profile_change.json
# on :team_profile_change do |data|
# Team profile fields have been deleted.
# @see https://api.slack.com/events/team_profile_delete
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/team_profile_delete.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/team_profile_delete.json
# on :team_profile_delete do |data|
# Team profile fields have been reordered.
# @see https://api.slack.com/events/team_profile_reorder
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/team_profile_reorder.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/team_profile_reorder.json
# on :team_profile_reorder do |data|
# The team name has changed.
# @see https://api.slack.com/events/team_rename
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/team_rename.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/team_rename.json
on :team_rename do |data|
team.name = data.name
end
# The team email domain has changed.
# @see https://api.slack.com/events/email_domain_changed
- # @see https://github.com/dblock/slack-api-ref/blob/master/events/email_domain_changed.json
+ # @see https://github.com/slack-ruby/slack-api-ref/blob/master/events/email_domain_changed.json
on :email_domain_changed do |data|
team.email_domain = data.email_domain
end
end
end