Module: Slack::Web::Api::Endpoints::AssistantThreads
- Included in:
- Slack::Web::Api::Endpoints
- Defined in:
- lib/slack/web/api/endpoints/assistant_threads.rb
Instance Method Summary collapse
-
#assistant_threads_setStatus(options = {}) ⇒ Object
Set the status for an AI assistant thread.
-
#assistant_threads_setSuggestedPrompts(options = {}) ⇒ Object
Set suggested prompts for the given assistant thread.
-
#assistant_threads_setTitle(options = {}) ⇒ Object
Set the title for the given assistant thread.
Instance Method Details
#assistant_threads_setStatus(options = {}) ⇒ Object
Set the status for an AI assistant thread.
20 21 22 23 24 25 |
# File 'lib/slack/web/api/endpoints/assistant_threads.rb', line 20 def assistant_threads_setStatus( = {}) raise ArgumentError, 'Required arguments :channel_id missing' if [:channel_id].nil? raise ArgumentError, 'Required arguments :thread_ts missing' if [:thread_ts].nil? raise ArgumentError, 'Required arguments :status missing' if [:status].nil? post('assistant.threads.setStatus', ) end |
#assistant_threads_setSuggestedPrompts(options = {}) ⇒ Object
Set suggested prompts for the given assistant thread
40 41 42 43 44 45 |
# File 'lib/slack/web/api/endpoints/assistant_threads.rb', line 40 def assistant_threads_setSuggestedPrompts( = {}) raise ArgumentError, 'Required arguments :channel_id missing' if [:channel_id].nil? raise ArgumentError, 'Required arguments :thread_ts missing' if [:thread_ts].nil? raise ArgumentError, 'Required arguments :prompts missing' if [:prompts].nil? post('assistant.threads.setSuggestedPrompts', ) end |
#assistant_threads_setTitle(options = {}) ⇒ Object
Set the title for the given assistant thread
58 59 60 61 62 63 |
# File 'lib/slack/web/api/endpoints/assistant_threads.rb', line 58 def assistant_threads_setTitle( = {}) raise ArgumentError, 'Required arguments :channel_id missing' if [:channel_id].nil? raise ArgumentError, 'Required arguments :thread_ts missing' if [:thread_ts].nil? raise ArgumentError, 'Required arguments :title missing' if [:title].nil? post('assistant.threads.setTitle', ) end |