diff --git a/events/channel_archive.json b/events/channel_archive.json index 9ed6d405..fbd937f3 100644 --- a/events/channel_archive.json +++ b/events/channel_archive.json @@ -5,7 +5,7 @@ "required_scope": "RTM", "example": { "type": "channel_archive", - "channel": "C024BE91L", - "user": "U024BE7LH" + "channel": "C123ABC456", + "user": "U123ABC456" } } \ No newline at end of file diff --git a/events/channel_deleted.json b/events/channel_deleted.json index dfb8a50b..d91b75ac 100644 --- a/events/channel_deleted.json +++ b/events/channel_deleted.json @@ -5,6 +5,6 @@ "required_scope": "RTM", "example": { "type": "channel_deleted", - "channel": "C024BE91L" + "channel": "C123ABC456" } } \ No newline at end of file diff --git a/events/channel_left.json b/events/channel_left.json index 1d57e52d..e9eb07c0 100644 --- a/events/channel_left.json +++ b/events/channel_left.json @@ -5,6 +5,6 @@ "required_scope": "RTM", "example": { "type": "channel_left", - "channel": "C024BE91L" + "channel": "C123ABC456" } } \ No newline at end of file diff --git a/events/channel_marked.json b/events/channel_marked.json index 728895e5..d6a00472 100644 --- a/events/channel_marked.json +++ b/events/channel_marked.json @@ -5,7 +5,7 @@ "required_scope": "RTM", "example": { "type": "channel_marked", - "channel": "C024BE91L", + "channel": "C123ABC456", "ts": "1401383885.000061" } } \ No newline at end of file diff --git a/events/channel_unarchive.json b/events/channel_unarchive.json index 4adc2af6..115e6004 100644 --- a/events/channel_unarchive.json +++ b/events/channel_unarchive.json @@ -5,7 +5,7 @@ "required_scope": "RTM", "example": { "type": "channel_unarchive", - "channel": "C024BE91L", - "user": "U024BE7LH" + "channel": "C123ABC456", + "user": "U123ABC456" } } \ No newline at end of file diff --git a/events/member_joined_channel.json b/events/member_joined_channel.json index e07b62f9..c9f0d721 100644 --- a/events/member_joined_channel.json +++ b/events/member_joined_channel.json @@ -5,10 +5,10 @@ "required_scope": "RTM", "example": { "type": "member_joined_channel", - "user": "W06GH7XHN", - "channel": "C0698JE0H", + "user": "W123ABC456", + "channel": "C123ABC456", "channel_type": "C", - "team": "T024BE7LD", + "team": "T123ABC456", "inviter": "U123456789" } } \ No newline at end of file diff --git a/events/message.json b/events/message.json index e228e6a1..6d07736a 100644 --- a/events/message.json +++ b/events/message.json @@ -1,12 +1,12 @@ { "name": "message", "desc": "A message was sent to a channel.", - "long_desc": "A message is delivered from several sources: A simple message is self explanatory: The channel property is the ID of the channel, private group or DM channel this message is posted in. The user property is the ID of the user speaking, the text property is the text spoken, and ts is the unique (per-channel) timestamp. Messages can also include an attachments property, containing a list of attachment objects. If the message has been edited after posting it will include an edited property, including the user ID of the editor, and the timestamp the edit happened. The original text of the message is not available. For example: Unlike other event types, message events can have a subtype. For example, this is a channel join message: They are structured in this way so that clients can either support them fully by having distinct behavior for each different subtype, or can fallback to a simple mode by just displaying the text of the message. The full list of message subtypes is: Some subtypes have a special hidden property. These indicate messages that are part of the history of a channel but should not be displayed to users. Examples include records of message edits or deletes: Hidden messages will not appear as the latest property on channel, group or im objects. They will also not return in calls to conversations.history. Messages can have several extra properties depending on whether or not they have been starred, pinned, or reacted to: The is_starred property is present and true if the calling user has starred the message, else it is omitted. The pinned_to array, if present, contains the IDs of any channels to which the message is currently pinned. The reactions property, if present, contains any reactions that have been added to the message and gives information about the type of reaction, the total number of users who added that reaction and a (possibly incomplete) list of users who have added that reaction to the message. The users array in the reactions property might not always contain all users that have reacted (we limit it to X users, and X might change), however count will always represent the count of all users who made that reaction (i.e. it may be greater than users.length). If the authenticated user has a given reaction then they are guaranteed to appear in the users array, regardless of whether count is greater than users.length or not. This exact event type is defined differently in the Events API. Depending on your associated OAuth scope or the channels your bot user belongs to, you must subscribe to one of the following events instead: The semantics for the events are the same as those described here — you're still receiving an event of type message. Not all message subtypes are deliverable in the Events API. When an event occurs, we will send an HTTP POST request to your Request URL. The outer payload is uniform across all Events API methods, and contains fields like team_id and event. Learn more", + "long_desc": "A message is delivered from several sources: A basic message: The channel property is the ID of the channel, private group or DM channel this message is posted in. The user property is the ID of the user speaking, the text property is the text spoken, and ts is the unique (per-channel) timestamp. Messages can also include an attachments property, containing a list of attachment objects. If the message has been edited after posting it will include an edited property, including the user ID of the editor, and the timestamp the edit happened. The original text of the message is not available. For example: Unlike other event types, message events can have a subtype. For example, this is a channel join message: They are structured in this way so that clients can either support them fully by having distinct behavior for each different subtype, or can fallback to a simple mode by just displaying the text of the message. The full list of message subtypes is: Some subtypes have a special hidden property. These indicate messages that are part of the history of a channel but should not be displayed to users. Examples include records of message edits or deletes: Hidden messages will not appear as the latest property on channel, group or im objects. They will also not return in calls to conversations.history. Messages can have several extra properties depending on whether or not they have been starred, pinned, or reacted to: The is_starred property is present and true if the calling user has starred the message, else it is omitted. The pinned_to array, if present, contains the IDs of any channels to which the message is currently pinned. The reactions property, if present, contains any reactions that have been added to the message and gives information about the type of reaction, the total number of users who added that reaction and a (possibly incomplete) list of users who have added that reaction to the message. The users array in the reactions property might not always contain all users that have reacted (we limit it to X users, and X might change), however count will always represent the count of all users who made that reaction (i.e. it may be greater than users.length). If the authenticated user has a given reaction then they are guaranteed to appear in the users array, regardless of whether count is greater than users.length or not. This exact event type is defined differently in the Events API. Depending on your associated OAuth scope or the channels your bot user belongs to, you must subscribe to one of the following events instead: The semantics for the events are the same as those described here — you're still receiving an event of type message. Not all message subtypes are deliverable in the Events API. When an event occurs, we will send an HTTP POST request to your Request URL. The outer payload is uniform across all Events API methods, and contains fields like team_id and event. Learn more", "required_scope": "RTM", "example": { "type": "message", - "channel": "C2147483705", - "user": "U2147483697", + "channel": "C123ABC456", + "user": "U123ABC456", "text": "Hello world", "ts": "1355517523.000005" } diff --git a/events/reaction_added.json b/events/reaction_added.json index bce982ef..417c2c72 100644 --- a/events/reaction_added.json +++ b/events/reaction_added.json @@ -5,12 +5,12 @@ "required_scope": "RTM", "example": { "type": "reaction_added", - "user": "U024BE7LH", + "user": "U123ABC456", "reaction": "thumbsup", - "item_user": "U0G9QF9C6", + "item_user": "U222222222", "item": { "type": "message", - "channel": "C0G9QF9GZ", + "channel": "C123ABC456", "ts": "1360782400.498405" }, "event_ts": "1360782804.083113" diff --git a/events/reaction_removed.json b/events/reaction_removed.json index 30177ef5..3456f780 100644 --- a/events/reaction_removed.json +++ b/events/reaction_removed.json @@ -5,12 +5,12 @@ "required_scope": "RTM", "example": { "type": "reaction_removed", - "user": "U024BE7LH", + "user": "U123ABC456", "reaction": "thumbsup", - "item_user": "U0G9QF9C6", + "item_user": "U222222222", "item": { "type": "message", - "channel": "C0G9QF9GZ", + "channel": "C123ABC456", "ts": "1360782400.498405" }, "event_ts": "1360782804.083113" diff --git a/events/user_typing.json b/events/user_typing.json index cbfc2ced..86c5b787 100644 --- a/events/user_typing.json +++ b/events/user_typing.json @@ -5,7 +5,7 @@ "required_scope": "RTM", "example": { "type": "user_typing", - "channel": "C02ELGNBH", - "user": "U024BE7LH" + "channel": "C123ABC456", + "user": "U123ABC456" } } \ No newline at end of file diff --git a/methods/chat/chat.delete.json b/methods/chat/chat.delete.json index 60ea625d..37af1627 100644 --- a/methods/chat/chat.delete.json +++ b/methods/chat/chat.delete.json @@ -25,7 +25,7 @@ }, "response": { "examples": [ - "{\n \"ok\": true,\n \"channel\": \"C024BE91L\",\n \"ts\": \"1401383885.000061\"\n}", + "{\n \"ok\": true,\n \"channel\": \"C123ABC456\",\n \"ts\": \"1401383885.000061\"\n}", "{\n \"error\": \"message_not_found\",\n \"ok\": false\n}" ] }, diff --git a/methods/chat/chat.getPermalink.json b/methods/chat/chat.getPermalink.json index 6baccc8e..314d5591 100644 --- a/methods/chat/chat.getPermalink.json +++ b/methods/chat/chat.getPermalink.json @@ -19,8 +19,8 @@ }, "response": { "examples": [ - "{\n \"ok\": true,\n \"channel\": \"C1H9RESGA\",\n \"permalink\": \"https://ghostbusters.slack.com/archives/C1H9RESGA/p135854651500008\"\n}", - "{\n \"ok\": true,\n \"channel\": \"C1H9RESGA\",\n \"permalink\": \"https://ghostbusters.slack.com/archives/C1H9RESGL/p135854651700023?thread_ts=1358546515.000008&cid=C1H9RESGL\"\n}", + "{\n \"ok\": true,\n \"channel\": \"C123ABC456\",\n \"permalink\": \"https://ghostbusters.slack.com/archives/C1H9RESGA/p135854651500008\"\n}", + "{\n \"ok\": true,\n \"channel\": \"C123ABC456\",\n \"permalink\": \"https://ghostbusters.slack.com/archives/C1H9RESGL/p135854651700023?thread_ts=1358546515.000008&cid=C1H9RESGL\"\n}", "{\n \"ok\": false,\n \"error\": \"channel_not_found\"\n}" ] }, diff --git a/methods/chat/chat.meMessage.json b/methods/chat/chat.meMessage.json index c319d5a8..be448798 100644 --- a/methods/chat/chat.meMessage.json +++ b/methods/chat/chat.meMessage.json @@ -19,7 +19,7 @@ }, "response": { "examples": [ - "{\n \"ok\": true,\n \"channel\": \"C024BE7LR\",\n \"ts\": \"1417671948.000006\"\n}", + "{\n \"ok\": true,\n \"channel\": \"C123ABC456\",\n \"ts\": \"1417671948.000006\"\n}", "{\n \"ok\": false,\n \"error\": \"invalid_auth\"\n}" ] }, diff --git a/methods/chat/chat.postMessage.json b/methods/chat/chat.postMessage.json index f9a62569..236c1225 100644 --- a/methods/chat/chat.postMessage.json +++ b/methods/chat/chat.postMessage.json @@ -116,7 +116,7 @@ ], "response": { "examples": [ - "{\n \"ok\": true,\n \"channel\": \"C123456\",\n \"ts\": \"1503435956.000247\",\n \"message\": {\n \"text\": \"Here's a message for you\",\n \"username\": \"ecto1\",\n \"bot_id\": \"B123456\",\n \"attachments\": [\n {\n \"text\": \"This is an attachment\",\n \"id\": 1,\n \"fallback\": \"This is an attachment's fallback\"\n }\n ],\n \"type\": \"message\",\n \"subtype\": \"bot_message\",\n \"ts\": \"1503435956.000247\"\n }\n}", + "{\n \"ok\": true,\n \"channel\": \"C123ABC456\",\n \"ts\": \"1503435956.000247\",\n \"message\": {\n \"text\": \"Here's a message for you\",\n \"username\": \"ecto1\",\n \"bot_id\": \"B123ABC456\",\n \"attachments\": [\n {\n \"text\": \"This is an attachment\",\n \"id\": 1,\n \"fallback\": \"This is an attachment's fallback\"\n }\n ],\n \"type\": \"message\",\n \"subtype\": \"bot_message\",\n \"ts\": \"1503435956.000247\"\n }\n}", "{\n \"ok\": false,\n \"error\": \"too_many_attachments\"\n}" ] }, diff --git a/methods/chat/chat.scheduleMessage.json b/methods/chat/chat.scheduleMessage.json index e6ddd143..d8bce242 100644 --- a/methods/chat/chat.scheduleMessage.json +++ b/methods/chat/chat.scheduleMessage.json @@ -87,7 +87,7 @@ }, "response": { "examples": [ - "{\n \"ok\": true,\n \"channel\": \"C123456\",\n \"scheduled_message_id\": \"Q1298393284\",\n \"post_at\": \"1562180400\",\n \"message\": {\n \"text\": \"Here's a message for you in the future\",\n \"username\": \"ecto1\",\n \"bot_id\": \"B123456\",\n \"attachments\": [\n {\n \"text\": \"This is an attachment\",\n \"id\": 1,\n \"fallback\": \"This is an attachment's fallback\"\n }\n ],\n \"type\": \"delayed_message\",\n \"subtype\": \"bot_message\"\n }\n}", + "{\n \"ok\": true,\n \"channel\": \"C123ABC456\",\n \"scheduled_message_id\": \"Q1298393284\",\n \"post_at\": \"1562180400\",\n \"message\": {\n \"text\": \"Here's a message for you in the future\",\n \"username\": \"ecto1\",\n \"bot_id\": \"B123ABC456\",\n \"attachments\": [\n {\n \"text\": \"This is an attachment\",\n \"id\": 1,\n \"fallback\": \"This is an attachment's fallback\"\n }\n ],\n \"type\": \"delayed_message\",\n \"subtype\": \"bot_message\"\n }\n}", "{\n \"ok\": false,\n \"error\": \"time_in_past\"\n}" ] }, diff --git a/methods/chat/chat.update.json b/methods/chat/chat.update.json index 7ce54169..b5af3bd1 100644 --- a/methods/chat/chat.update.json +++ b/methods/chat/chat.update.json @@ -76,7 +76,7 @@ }, "response": { "examples": [ - "{\n \"ok\": true,\n \"channel\": \"C024BE91L\",\n \"ts\": \"1401383885.000061\",\n \"text\": \"Updated text you carefully authored\",\n \"message\": {\n \"text\": \"Updated text you carefully authored\",\n \"user\": \"U34567890\"\n }\n}", + "{\n \"ok\": true,\n \"channel\": \"C123ABC456\",\n \"ts\": \"1401383885.000061\",\n \"text\": \"Updated text you carefully authored\",\n \"message\": {\n \"text\": \"Updated text you carefully authored\",\n \"user\": \"U34567890\"\n }\n}", "{\n \"ok\": false,\n \"error\": \"cant_update_message\"\n}" ] }, diff --git a/methods/pins/pins.list.json b/methods/pins/pins.list.json index c3c0bfaf..3afc61e2 100644 --- a/methods/pins/pins.list.json +++ b/methods/pins/pins.list.json @@ -13,7 +13,7 @@ }, "response": { "examples": [ - "{\n \"items\": [\n {\n \"channel\": \"C2U86NC6H\",\n \"created\": 1508881078,\n \"created_by\": \"U2U85N1RZ\",\n \"message\": {\n \"permalink\": \"https://hitchhikers.slack.com/archives/C2U86NC6H/p1508197641000151\",\n \"pinned_to\": [\n \"C2U86NC6H\"\n ],\n \"text\": \"What is the meaning of life?\",\n \"ts\": \"1508197641.000151\",\n \"type\": \"message\",\n \"user\": \"U2U85N1RZ\"\n },\n \"type\": \"message\"\n },\n {\n \"channel\": \"C2U86NC6H\",\n \"created\": 1508880991,\n \"created_by\": \"U2U85N1RZ\",\n \"message\": {\n \"permalink\": \"https://hitchhikers.slack.com/archives/C2U86NC6H/p1508284197000015\",\n \"pinned_to\": [\n \"C2U86NC6H\"\n ],\n \"text\": \"The meaning of life, the universe, and everything is 42.\",\n \"ts\": \"1503289197.000015\",\n \"type\": \"message\",\n \"user\": \"U2U85N1RZ\"\n },\n \"type\": \"message\"\n }\n ],\n \"ok\": true\n}", + "{\n \"items\": [\n {\n \"channel\": \"C123ABC456\",\n \"created\": 1508881078,\n \"created_by\": \"U123ABC456\",\n \"message\": {\n \"permalink\": \"https://hitchhikers.slack.com/archives/C2U86NC6H/p1508197641000151\",\n \"pinned_to\": [\n \"C2U86NC6H\"\n ],\n \"text\": \"What is the meaning of life?\",\n \"ts\": \"1508197641.000151\",\n \"type\": \"message\",\n \"user\": \"U123ABC456\"\n },\n \"type\": \"message\"\n },\n {\n \"channel\": \"C123ABC456\",\n \"created\": 1508880991,\n \"created_by\": \"U123ABC456\",\n \"message\": {\n \"permalink\": \"https://hitchhikers.slack.com/archives/C2U86NC6H/p1508284197000015\",\n \"pinned_to\": [\n \"C123ABC456\"\n ],\n \"text\": \"The meaning of life, the universe, and everything is 42.\",\n \"ts\": \"1503289197.000015\",\n \"type\": \"message\",\n \"user\": \"U123ABC456\"\n },\n \"type\": \"message\"\n }\n ],\n \"ok\": true\n}", "{\n \"ok\": false,\n \"error\": \"invalid_auth\"\n}" ] }, diff --git a/methods/reactions/reactions.get.json b/methods/reactions/reactions.get.json index ee95750e..77c550b1 100644 --- a/methods/reactions/reactions.get.json +++ b/methods/reactions/reactions.get.json @@ -37,7 +37,7 @@ }, "response": { "examples": [ - "{\n \"ok\": true,\n \"type\": \"message\",\n \"message\": {\n \"type\": \"message\",\n \"text\": \"Hi there!\",\n \"user\": \"W123456\",\n \"ts\": \"1648602352.215969\",\n \"team\": \"T123456\",\n \"reactions\": [\n {\n \"name\": \"grinning\",\n \"users\": [\n \"W222222\"\n ],\n \"count\": 1\n },\n {\n \"name\": \"question\",\n \"users\": [\n \"W333333\"\n ],\n \"count\": 1\n }\n ],\n \"permalink\": \"https://xxx.slack.com/archives/C123456/p1648602352215969\"\n },\n \"channel\": \"C123456\"\n}", + "{\n \"ok\": true,\n \"type\": \"message\",\n \"message\": {\n \"type\": \"message\",\n \"text\": \"Hi there!\",\n \"user\": \"W123456\",\n \"ts\": \"1648602352.215969\",\n \"team\": \"T123456\",\n \"reactions\": [\n {\n \"name\": \"grinning\",\n \"users\": [\n \"W222222\"\n ],\n \"count\": 1\n },\n {\n \"name\": \"question\",\n \"users\": [\n \"W333333\"\n ],\n \"count\": 1\n }\n ],\n \"permalink\": \"https://xxx.slack.com/archives/C123456/p1648602352215969\"\n },\n \"channel\": \"C123ABC456\"\n}", "{\n \"ok\": false,\n \"error\": \"invalid_auth\"\n}" ] }, diff --git a/methods/reactions/reactions.list.json b/methods/reactions/reactions.list.json index f7b34e92..8a6863af 100644 --- a/methods/reactions/reactions.list.json +++ b/methods/reactions/reactions.list.json @@ -37,7 +37,7 @@ }, "response": { "examples": [ - "{\n \"items\": [\n {\n \"type\": \"message\",\n \"channel\": \"C3UKJTQAC\",\n \"message\": {\n \"bot_id\": \"B4VLRLMKJ\",\n \"reactions\": [\n {\n \"count\": 1,\n \"name\": \"robot_face\",\n \"users\": [\n \"U2U85N1RV\"\n ]\n }\n ],\n \"subtype\": \"bot_message\",\n \"text\": \"Hello from Python! :tada:\",\n \"ts\": \"1507849573.000090\",\n \"username\": \"Shipit Notifications\"\n }\n },\n {\n \"comment\": {\n \"type\": \"file_comment\",\n \"comment\": \"This is a file comment\",\n \"created\": 1508286096,\n \"id\": \"Fc7LP08P1U\",\n \"reactions\": [\n {\n \"count\": 1,\n \"name\": \"white_check_mark\",\n \"users\": [\n \"U2U85N1RV\"\n ]\n }\n ],\n \"timestamp\": 1508286096,\n \"user\": \"U2U85N1RV\"\n },\n \"file\": {\n \"channels\": [\n \"C2U7V2YA2\"\n ],\n \"comments_count\": 1,\n \"created\": 1507850315,\n \"reactions\": [\n {\n \"count\": 1,\n \"name\": \"stuck_out_tongue_winking_eye\",\n \"users\": [\n \"U2U85N1RV\"\n ]\n }\n ],\n \"title\": \"computer.gif\",\n \"user\": \"U2U85N1RV\",\n \"username\": \"\"\n }\n },\n {\n \"file\": {\n \"channels\": [\n \"C2U7V2YA2\"\n ],\n \"comments_count\": 1,\n \"created\": 1507850315,\n \"id\": \"F7H0D7ZA4\",\n \"name\": \"computer.gif\",\n \"reactions\": [\n {\n \"count\": 1,\n \"name\": \"stuck_out_tongue_winking_eye\",\n \"users\": [\n \"U2U85N1RV\"\n ]\n }\n ],\n \"size\": 1639034,\n \"title\": \"computer.gif\",\n \"user\": \"U2U85N1RV\",\n \"username\": \"\"\n },\n \"type\": \"file\"\n }\n ],\n \"ok\": true,\n \"response_metadata\": {\n \"next_cursor\": \"dGVhbTpDMUg5UkVTR0w=\"\n }\n}", + "{\n \"items\": [\n {\n \"type\": \"message\",\n \"channel\": \"C123ABC456\",\n \"message\": {\n \"bot_id\": \"B123ABC456\",\n \"reactions\": [\n {\n \"count\": 1,\n \"name\": \"robot_face\",\n \"users\": [\n \"U123ABC456\"\n ]\n }\n ],\n \"subtype\": \"bot_message\",\n \"text\": \"Hello from Python! :tada:\",\n \"ts\": \"1507849573.000090\",\n \"username\": \"Shipit Notifications\"\n }\n },\n {\n \"comment\": {\n \"type\": \"file_comment\",\n \"comment\": \"This is a file comment\",\n \"created\": 1508286096,\n \"id\": \"Fc123ABC456\",\n \"reactions\": [\n {\n \"count\": 1,\n \"name\": \"white_check_mark\",\n \"users\": [\n \"U123ABC456\"\n ]\n }\n ],\n \"timestamp\": 1508286096,\n \"user\": \"U123ABC456\"\n },\n \"file\": {\n \"channels\": [\n \"C123ABC456\"\n ],\n \"comments_count\": 1,\n \"created\": 1507850315,\n \"reactions\": [\n {\n \"count\": 1,\n \"name\": \"stuck_out_tongue_winking_eye\",\n \"users\": [\n \"U123ABC456\"\n ]\n }\n ],\n \"title\": \"computer.gif\",\n \"user\": \"U123ABC456\",\n \"username\": \"\"\n }\n },\n {\n \"file\": {\n \"channels\": [\n \"C123ABC456\"\n ],\n \"comments_count\": 1,\n \"created\": 1507850315,\n \"id\": \"F123ABC456\",\n \"name\": \"computer.gif\",\n \"reactions\": [\n {\n \"count\": 1,\n \"name\": \"stuck_out_tongue_winking_eye\",\n \"users\": [\n \"U123ABC456\"\n ]\n }\n ],\n \"size\": 1639034,\n \"title\": \"computer.gif\",\n \"user\": \"U123ABC456\",\n \"username\": \"\"\n },\n \"type\": \"file\"\n }\n ],\n \"ok\": true,\n \"response_metadata\": {\n \"next_cursor\": \"dGVhbTpDMUg5UkVTR0w=\"\n }\n}", "{\n \"ok\": false,\n \"error\": \"invalid_auth\"\n}" ] }, diff --git a/methods/stars/stars.list.json b/methods/stars/stars.list.json index e24f41c9..2f0e05c0 100644 --- a/methods/stars/stars.list.json +++ b/methods/stars/stars.list.json @@ -2,7 +2,7 @@ "group": "stars", "name": "stars.list", "deprecated": false, - "desc": "List a user's saved items, formerly known as _stars_.", + "desc": "List a user's saved items, formerly known as stars.", "args": { "cursor": { "required": false, @@ -25,7 +25,7 @@ }, "response": { "examples": [ - "{\n \"ok\": true\n}", + "{\n \"ok\": true,\n \"items\": [\n {\n \"type\": \"message\",\n \"channel\": \"C123ABC456\",\n \"message\": {\n \"type\": \"message\",\n \"subtype\": \"bot_message\",\n \"text\": \"\",\n \"ts\": \"1655762568.324229\",\n \"username\": \"username\",\n \"icons\": {\n \"emoji\": \":test:\"\n },\n \"bot_id\": \"BSLACKBOT\",\n \"attachments\": [\n {\n \"color\": \"ecb438\",\n \"ts\": 1655762568,\n \"id\": 1,\n \"fallback\": \"some text\",\n \"text\": \"some text\",\n \"pretext\": \"*chat.postMessage*\",\n \"mrkdwn_in\": [\n \"pretext\",\n \"text\"\n ]\n }\n ],\n \"permalink\": \"https://your-workspace.slack.com/archives/C123ABC456/p123456789\"\n },\n \"date_create\": 1656014995\n }\n ],\n \"paging\": {\n \"per_page\": 100,\n \"spill\": 0,\n \"page\": 1,\n \"total\": 1,\n \"pages\": 1\n }\n}", "{\n \"ok\": false,\n \"error\": \"invalid_auth\"\n}" ] }, diff --git a/methods/users/users.profile.set.json b/methods/users/users.profile.set.json index 4c907077..22c6ef52 100644 --- a/methods/users/users.profile.set.json +++ b/methods/users/users.profile.set.json @@ -41,6 +41,7 @@ "email_taken": "email taken.", "invalid_profile": "Profile object passed in is not valid JSON (make sure it is URL encoded!).", "must_clear_both_status_text_and_status_emoji": "Clearing the status requires setting both status_text and status_emoji to ''.", + "name_not_allowed": "name cannot contain URL.", "not_admin": "Only admins can update the profile of another user. Some fields, like email may only be updated by an admin.", "not_app_admin": "Only team owners and selected members can update the profile of a bot user.", "partial_profile_set_failed": "Failed to set user profile.",