@slack/client
Version:
A library for creating a Slack client
462 lines (461 loc) • 13.3 kB
JSON
{
"bot_added": {
"type": "bot_added",
"bot": {
"id": "B0EV3JE8Z",
"deleted": false,
"name": "bot",
"icons": {
"image_48": "https://slack.global.ssl.fastly.net/12b5a/plugins/bot/assets/service_48.png"
}
},
"cache_ts": 1448003197
},
"bot_changed": {
"type": "bot_added",
"bot": {
"id": "B0EV3JE8Z",
"deleted": false,
"name": "changed-bot",
"icons": {
"image_48": "https://slack.global.ssl.fastly.net/12b5a/plugins/bot/assets/service_48.png"
}
},
"cache_ts": 1448003197
},
"channel_archive": {
"type": "channel_archive",
"channel": "C0CJ25PDM",
"user": "U0CJ5PC7L"
},
"channel_created": {
"type": "channel_created",
"channel": {
"id": "C0F3Q8LH5",
"is_channel": true,
"name": "test-channel",
"created": 1448262090,
"creator": "U0CJ5PC7L"
},
"event_ts": "1448262090.810507"
},
"channel_deleted": {
"type": "channel_deleted",
"channel": "C0CJ25PDM"
},
"channel_joined": {
"type": "channel_joined",
"channel": {
"id": "C0CJ25PDM",
"name": "test",
"is_channel": true,
"created": 1444959237,
"creator": "U0CJ5PC7L",
"is_archived": false,
"is_general": false,
"is_member": true,
"last_read": "0000000000.000000",
"latest": {
"user": "U0F3LFX6K",
"type": "message",
"subtype": "channel_join",
"text": "<@U0F3LFX6K|carol> has joined the channel",
"ts": "1448262357.000002"
},
"unread_count": 0,
"unread_count_display": 0,
"members": [
"U0CJ5PC7L",
"U0F3LFX6K"
],
"topic": {
"value": "",
"creator": "",
"last_set": 0
},
"purpose": {
"value": "",
"creator": "",
"last_set": 0
}
}
},
"channel_left": {
"type": "channel_left",
"channel": "C0CJ25PDM"
},
"channel_marked": {
"type": "channel_marked",
"channel": "C0CJ25PDM",
"ts": "1448253718.000002",
"unread_count": 0,
"unread_count_display": 0,
"num_mentions": 0,
"num_mentions_display": 0,
"mention_count": 0,
"mention_count_display": 0
},
"channel_rename": {
"type": "channel_rename",
"channel": {
"id": "C0CJ25PDM",
"is_channel": true,
"name": "test-channel-rename",
"created": "1448262090"
},
"event_ts": "1448262186.810954"
},
"channel_unarchive": {
"type": "channel_unarchive",
"channel": "C0CJ25PDM",
"user": "U0CJ5PC7L"
},
"group_archive": {
"type": "group_archive",
"channel": "G0CHZSXFW",
"ts": "1448327143.000002"
},
"group_close": {
"type": "group_close",
"user": "U0CJ5PC7L",
"channel": "G0CHZSXFW"
},
"group_joined": {
"type": "group_joined",
"channel": {
"id": "G0CHZSXFW",
"name": "private",
"is_group": true,
"created": 1444959855,
"creator": "U0CJ5PC7L",
"is_archived": false,
"is_mpim": false,
"is_open": true,
"last_read": "1448328439.000011",
"latest": {
"user": "U0CJ5PC7L",
"type": "message",
"text": "I'm Alice! Yay!",
"ts": "1448328439.000011"
},
"unread_count": 0,
"unread_count_display": 0,
"members": [
"U0CJ5PC7L",
"U0F3LFX6K"
],
"topic": {
"value": "",
"creator": "",
"last_set": 0
},
"purpose": {
"value": "",
"creator": "",
"last_set": 0
}
}
},
"group_left": {
"type": "group_left",
"channel": "G0CHZSXFW"
},
"group_marked": {
"channel": "G0CHZSXFW",
"ts": "1448327532.000006",
"unread_count": 0,
"unread_count_display": 0,
"num_mentions": 0,
"num_mentions_display": 0,
"mention_count": 0,
"mention_count_display": 0,
"type": "group_marked",
"is_mpim": false
},
"group_rename": {
"type": "group_rename",
"channel": {
"id": "G0CHZSXFW",
"name": "test-group-rename",
"is_group": true,
"created": 1444959855
},
"ts": "1448327708.000007"
},
"group_unarchive": {
"type": "group_unarchive",
"channel": "G0CHZSXFW",
"ts": "1448327151.000004"
},
"im_close": {
"type": "im_close",
"user": "USLACKBOT",
"channel": "D0CJ1P4JJ"
},
"im_created": {
"type": "im_created",
"user": "U0F3LFX6K",
"channel": {
"id": "D0F3HHAQ3",
"is_im": true,
"user": "U0F3LFX6K",
"created": 1448254082,
"last_read": "0000000000.000000",
"latest": null,
"unread_count": 0,
"unread_count_display": 0,
"is_open": false
}
},
"im_marked": {
"type": "im_marked",
"channel": "D0CHZQWNP",
"ts": "1448253718.000002",
"dm_count": 0,
"unread_count_display": 0,
"num_mentions_display": 0,
"mention_count_display": 0
},
"im_open": {
"type": "im_open",
"user": "USLACKBOT",
"channel": "D0CJ1P4JJ"
},
"manual_presence_change": {
"type": "manual_presence_change",
"presence": "away",
"event_ts": "1448323107.373650"
},
"message::channel_archive": {
"user": "U0F3LFX6K",
"members": [
"U0CJ5PC7L",
"U0F3LFX6K"
],
"type": "message",
"subtype": "channel_archive",
"text": "<@U0F3LFX6K|carol> archived the channel (w/ 2 members)",
"channel": "C0CJ25PDM",
"ts": "1448491518.000007"
},
"message::channel_join": {
"user": "U0F3LFX6K",
"inviter": "U0CJ5PC7L",
"type": "message",
"subtype": "channel_join",
"text": "<@U0F3LFX6K|carol> has joined the channel",
"channel": "C0CJ25PDM",
"ts": "1448413360.000002"
},
"message::channel_leave": {
"user": "U0F3LFX6K",
"type": "message",
"subtype": "channel_leave",
"text": "<@U0F3LFX6K|carol> has left the channel",
"channel": "C0CJ25PDM",
"ts": "1448413366.000003"
},
"message::channel_name": {
"user": "U0F3LFX6K",
"old_name": "test",
"name": "test-channel-rename",
"type": "message",
"subtype": "channel_name",
"text": "<@U0F3LFX6K|carol> has renamed the channel from \"test\" to \"test-channel-rename\"",
"channel": "C0CJ25PDM",
"ts": "1449034681.000004"
},
"message::group_archive": {
"user": "U0F3LFX6K",
"type": "message",
"subtype": "group_archive",
"text": "<@U0F3LFX6K|carol> archived the private channel",
"channel": "G0CHZSXFW",
"ts": "1448490710.000005"
},
"message::group_join": {
"user": "U0F3LFX6K",
"inviter": "U0CJ5PC7L",
"type": "message",
"subtype": "group_join",
"text": "<@U0F3LFX6K|carol> has joined the group",
"channel": "G0CHZSXFW",
"ts": "1448486574.000003"
},
"message::group_leave": {
"user": "U0F3LFX6K",
"type": "message",
"subtype": "group_leave",
"text": "<@U0F3LFX6K|carol> has left the group",
"channel": "G0CHZSXFW",
"ts": "1448486522.000002"
},
"message::group_name": {
"user": "U0CJ5PC7L",
"old_name": "private",
"name": "private-rename",
"type": "message",
"subtype": "group_name",
"text": "<@U0CJ5PC7L|alice> has renamed the group from \"private\" to \"private-rename\"",
"channel": "G0CHZSXFW",
"ts": "1449034974.000003"
},
"message::group_unarchive": {
"user": "U0F3LFX6K",
"type": "message",
"subtype": "group_unarchive",
"text": "<@U0F3LFX6K|carol> un-archived the private channel",
"channel": "G0CHZSXFW",
"ts": "1448490716.000007"
},
"message::message_changed": {
"type": "message",
"message": {
"type": "message",
"user": "U0F3LFX6K",
"text": "Hi carol! :simple_smile:",
"edited": {
"user": "U0F3LFX6K",
"ts": "1448496795.000000"
},
"ts": "1448496754.000002"
},
"subtype": "message_changed",
"hidden": true,
"channel": "C0CJ25PDM",
"event_ts": "1448496795.861984",
"ts": "1448496795.000005"
},
"message::message_deleted": {
"type": "message",
"deleted_ts": "1448496776.000003",
"subtype": "message_deleted",
"hidden": true,
"channel": "C0CJ25PDM",
"event_ts": "1448496783.861926",
"ts": "1448496783.000004"
},
"pref_change": {
"type": "pref_change",
"name": "display_real_names_override",
"value": 1
},
"presence_change": {
"type": "presence_change",
"user": "U0CJ5PC7L",
"presence": "away"
},
"reaction_added": {
"type": "reaction_added",
"user": "U0CJ5PC7L",
"item": {
"type": "message",
"channel": "C0CHZA86Q",
"ts": "1444959632.000002"
},
"reaction": "+1",
"event_ts": "1450340664.394875"
},
"reaction_removed": {
"type": "reaction_removed",
"user": "U0CJ5PC7L",
"item": {
"type": "message",
"channel": "C0CHZA86Q",
"ts": "1444959632.000002"
},
"reaction": "+1",
"event_ts": "1450340723.395241"
},
"team_domain_change": {
"type": "team_domain_change",
"url": "https://sslack-api-test.slack.com",
"domain": "sslack-api-test",
"event_ts": "1448005008.450131"
},
"team_join": {
"type": "team_join",
"user": {
"id": "U0EV582MU",
"team_id": "T0CHZBU59",
"name": "eve",
"deleted": false,
"status": null,
"color": "674b1b",
"real_name": "eve",
"tz": "America/Los_Angeles",
"tz_label": "Pacific Standard Time",
"tz_offset": -28800,
"profile": {
"first_name": "eve",
"real_name": "eve",
"real_name_normalized": "eve",
"email": "leah+slack-api-test+eve@slack-corp.com",
"image_24": "https://secure.gravatar.com/avatar/11eb4e78a6b5e83a6434e831df883179.jpg?s=24&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F66f9%2Fimg%2Favatars%2Fava_0017-24.png",
"image_32": "https://secure.gravatar.com/avatar/11eb4e78a6b5e83a6434e831df883179.jpg?s=32&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F66f9%2Fimg%2Favatars%2Fava_0017-32.png",
"image_48": "https://secure.gravatar.com/avatar/11eb4e78a6b5e83a6434e831df883179.jpg?s=48&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F66f9%2Fimg%2Favatars%2Fava_0017-48.png",
"image_72": "https://secure.gravatar.com/avatar/11eb4e78a6b5e83a6434e831df883179.jpg?s=72&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F66f9%2Fimg%2Favatars%2Fava_0017-72.png",
"image_192": "https://secure.gravatar.com/avatar/11eb4e78a6b5e83a6434e831df883179.jpg?s=192&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F7fa9%2Fimg%2Favatars%2Fava_0017-192.png",
"image_512": "https://secure.gravatar.com/avatar/11eb4e78a6b5e83a6434e831df883179.jpg?s=512&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F7fa9%2Fimg%2Favatars%2Fava_0017-512.png",
"fields": null
},
"is_admin": false,
"is_owner": false,
"is_primary_owner": false,
"is_restricted": false,
"is_ultra_restricted": false,
"is_bot": false,
"presence": "away"
},
"cache_ts": 1448005248
},
"team_pref_change": {
"type": "team_pref_change",
"name": "require_at_for_mention",
"value": true
},
"team_rename": {
"type": "team_rename",
"name": "slack-api-test-test",
"event_ts": "1448004913.449540"
},
"user_change": {
"type": "user_change",
"user": {
"id": "U0CJ1TWKX",
"team_id": "T0CHZBU59",
"name": "bob",
"deleted": false,
"status": null,
"color": "4bbe2e",
"real_name": "bob",
"tz": "America/Los_Angeles",
"tz_label": "Pacific Standard Time",
"tz_offset": -28800,
"profile": {
"first_name": "bob",
"real_name": "bob",
"real_name_normalized": "bob",
"email": "leah+slack-api-test-user-change-test@slack-corp.com",
"image_24": "https://secure.gravatar.com/avatar/7c36ad3a7192f01d72cb3b189143eb4c.jpg?s=24&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F66f9%2Fimg%2Favatars%2Fava_0005-24.png",
"image_32": "https://secure.gravatar.com/avatar/7c36ad3a7192f01d72cb3b189143eb4c.jpg?s=32&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F66f9%2Fimg%2Favatars%2Fava_0005-32.png",
"image_48": "https://secure.gravatar.com/avatar/7c36ad3a7192f01d72cb3b189143eb4c.jpg?s=48&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F66f9%2Fimg%2Favatars%2Fava_0005-48.png",
"image_72": "https://secure.gravatar.com/avatar/7c36ad3a7192f01d72cb3b189143eb4c.jpg?s=72&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F66f9%2Fimg%2Favatars%2Fava_0005-72.png",
"image_192": "https://secure.gravatar.com/avatar/7c36ad3a7192f01d72cb3b189143eb4c.jpg?s=192&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F7fa9%2Fimg%2Favatars%2Fava_0005-192.png",
"image_512": "https://secure.gravatar.com/avatar/7c36ad3a7192f01d72cb3b189143eb4c.jpg?s=512&d=https%3A%2F%2Fslack.global.ssl.fastly.net%2F7fa9%2Fimg%2Favatars%2Fava_0005-512.png",
"fields": null
},
"is_admin": false,
"is_owner": false,
"is_primary_owner": false,
"is_restricted": false,
"is_ultra_restricted": false,
"is_bot": false
}
},
"user_typing": {
"type": "user_typing",
"channel": "C0CHZA86Q",
"user": "U0CJ1TWKX"
}
}