|
61 | 61 | g.command 'postEphemeral' do |c| |
62 | 62 | c.flag 'attachments', desc: 'A JSON-based array of structured attachments, presented as a URL-encoded string.' |
63 | 63 | c.flag 'channel', desc: 'Channel, private group, or IM channel to send message to. Can be an encoded ID, or a name.' |
64 | | - c.flag 'text', desc: "Text of the message to send. See below for an explanation of formatting. This field is usually required, unless you're providing only attachments instead." |
| 64 | + c.flag 'text', desc: 'How this field works and whether it is required depends on other fields you use in your API call. See below for more detail.' |
65 | 65 | c.flag 'user', desc: 'id of the user who will receive the ephemeral message. The user should be in the channel specified by the channel argument.' |
66 | 66 | c.flag 'as_user', desc: 'Pass true to post the message as the authed user. Defaults to true if the chat:write:bot scope is not included. Otherwise, defaults to false.' |
67 | 67 | c.flag 'blocks', desc: 'A JSON-based array of structured blocks, presented as a URL-encoded string.' |
|
80 | 80 | g.long_desc %( Sends a message to a channel. ) |
81 | 81 | g.command 'postMessage' do |c| |
82 | 82 | c.flag 'channel', desc: 'Channel, private group, or IM channel to send message to. Can be an encoded ID, or a name. See below for more details.' |
83 | | - c.flag 'text', desc: "Text of the message to send. See below for an explanation of formatting. This field is usually required, unless you're providing only attachments instead. Provide no more than 40,000 characters or risk truncation." |
84 | | - c.flag 'as_user', desc: 'Pass true to post the message as the authed user, instead of as a bot. Defaults to false. See authorship below.' |
| 83 | + c.flag 'text', desc: 'How this field works and whether it is required depends on other fields you use in your API call. See below for more detail.' |
| 84 | + c.flag 'as_user', desc: 'Pass true to post the message as the authed user, instead of as a bot. Defaults to false. See authorship below. This argument may not be used with newer bot tokens.' |
85 | 85 | c.flag 'attachments', desc: 'A JSON-based array of structured attachments, presented as a URL-encoded string.' |
86 | 86 | c.flag 'blocks', desc: 'A JSON-based array of structured blocks, presented as a URL-encoded string.' |
87 | | - c.flag 'icon_emoji', desc: 'Emoji to use as the icon for this message. Overrides icon_url. Must be used in conjunction with as_user set to false, otherwise ignored. See authorship below.' |
88 | | - c.flag 'icon_url', desc: 'URL to an image to use as the icon for this message. Must be used in conjunction with as_user set to false, otherwise ignored. See authorship below.' |
| 87 | + c.flag 'icon_emoji', desc: 'Emoji to use as the icon for this message. Overrides icon_url. Must be used in conjunction with as_user set to false, otherwise ignored. See authorship below. This argument may not be used with newer bot tokens.' |
| 88 | + c.flag 'icon_url', desc: 'URL to an image to use as the icon for this message. Must be used in conjunction with as_user set to false, otherwise ignored. See authorship below. This argument may not be used with newer bot tokens.' |
89 | 89 | c.flag 'link_names', desc: 'Find and link channel names and usernames.' |
90 | 90 | c.flag 'mrkdwn', desc: 'Disable Slack markup parsing by setting to false. Enabled by default.' |
91 | 91 | c.flag 'parse', desc: 'Change how messages are treated. Defaults to none. See below.' |
|
104 | 104 | g.command 'scheduleMessage' do |c| |
105 | 105 | c.flag 'channel', desc: 'Channel, private group, or DM channel to send message to. Can be an encoded ID, or a name. See below for more details.' |
106 | 106 | c.flag 'post_at', desc: 'Unix EPOCH timestamp of time in future to send the message.' |
107 | | - c.flag 'text', desc: "Text of the message to send. See below for an explanation of formatting. This field is usually required, unless you're providing only attachments instead. Provide no more than 40,000 characters or risk truncation." |
108 | | - c.flag 'as_user', desc: 'Pass true to post the message as the authed user, instead of as a bot. Defaults to false. See authorship below.' |
| 107 | + c.flag 'text', desc: 'How this field works and whether it is required depends on other fields you use in your API call. See below for more detail.' |
| 108 | + c.flag 'as_user', desc: 'Pass true to post the message as the authed user, instead of as a bot. Defaults to false. See chat.postMessage.' |
109 | 109 | c.flag 'attachments', desc: 'A JSON-based array of structured attachments, presented as a URL-encoded string.' |
110 | 110 | c.flag 'blocks', desc: 'A JSON-based array of structured blocks, presented as a URL-encoded string.' |
111 | 111 | c.flag 'link_names', desc: 'Find and link channel names and usernames.' |
112 | | - c.flag 'parse', desc: 'Change how messages are treated. Defaults to none. See below.' |
| 112 | + c.flag 'parse', desc: 'Change how messages are treated. Defaults to none. See chat.postMessage.' |
113 | 113 | c.flag 'reply_broadcast', desc: 'Used in conjunction with thread_ts and indicates whether reply should be made visible to everyone in the channel or conversation. Defaults to false.' |
114 | 114 | c.flag 'thread_ts', desc: "Provide another message's ts value to make this message a reply. Avoid using a reply's ts value; use its parent instead." |
115 | 115 | c.flag 'unfurl_links', desc: 'Pass true to enable unfurling of primarily text-based content.' |
|
0 commit comments