Skip to content

Conversation

RhnSharma
Copy link
Contributor

Fixes #412
Hi @seratch, how does this look?
Let me know if this needs any changes.
Thanks

Category (place an x in each of the [ ])

  • slack_bolt.App and/or its core components
  • slack_bolt.async_app.AsyncApp and/or its core components
  • Adapters in slack_bolt.adapter
  • Document pages under /docs
  • Others

Requirements (place an x in each [ ])

Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.

  • I've read and understood the Contributing Guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've run ./scripts/install_all_and_run_tests.sh after making the changes.

@CLAassistant
Copy link

CLAassistant commented Jul 21, 2021

CLA assistant check
All committers have signed the CLA.

@seratch seratch added the docs Improvements or additions to documentation label Jul 21, 2021
@seratch seratch added this to the 1.8.0 milestone Jul 21, 2021
@seratch
Copy link
Contributor

seratch commented Jul 21, 2021

Hi @RhnSharma, thanks for taking the time to make this pull request! Perhaps, there may be more to change in the documents. I would like other maintainers to check this first.

Copy link
Member

@stevengill stevengill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @RhnSharma!

Thank you so much for sending this in! I left a few comments on other instances of events we can update.

Also, to close the issue, we should look into updating these files as well.

ack(response_action="errors", errors=errors)
return
# Acknowledge the view_submission event and close the modal
# Acknowledge the view_submission request and close the modal
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line 21 in this file also says view_submission event. Same with line 10. Could you update these as well?

Your app can use the `command()` method to listen to incoming slash command events. The method requires a `command_name` of type `str`.

Commands must be acknowledged with `ack()` to inform Slack your app has received the event.
Commands must be acknowledged with `ack()` to inform Slack your app has received the request.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line 10 in this file also uses events. Could you update that

incoming slash command events

Shortcuts are invokable entry points to apps. Global shortcuts are available from within search and text composer area in Slack. Message shortcuts are available in the context menus of messages. Your app can use the `shortcut()` method to listen to incoming shortcut events. The method requires a `callback_id` parameter of type `str` or `re.Pattern`.

Shortcuts must be acknowledged with `ack()` to inform Slack that your app has received the event.
Shortcuts must be acknowledged with `ack()` to inform Slack that your app has received the request.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should update line 12 in this file to also use requests instead of events.

listen to incoming shortcut events

@RhnSharma
Copy link
Contributor Author

RhnSharma commented Jul 22, 2021

@stevengill I have made the changes you requested. Please take a look at it and let me know if this needs any changes.
Thanks

@codecov
Copy link

codecov bot commented Jul 22, 2021

Codecov Report

Merging #415 (5ec2245) into main (befc3a1) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #415   +/-   ##
=======================================
  Coverage   91.36%   91.36%           
=======================================
  Files         167      167           
  Lines        5491     5491           
=======================================
  Hits         5017     5017           
  Misses        474      474           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update befc3a1...5ec2245. Read the comment docs.

@seratch
Copy link
Contributor

seratch commented Aug 5, 2021

@stevengill This pull request now looks good to me. Do you have any comments on it?

@seratch
Copy link
Contributor

seratch commented Aug 6, 2021

Will merge this pull request tomorrow if there is no other comment

@seratch seratch merged commit f75d630 into slackapi:main Aug 6, 2021
@seratch
Copy link
Contributor

seratch commented Aug 6, 2021

@RhnSharma Thanks a lot for making this pull request 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make "events" in the document even clearer

4 participants